I really don't believe she is wetting the bed on purpose. It may have something to do with you, however, but it's nothing you are doing wrong. She likely sleeps most soundly when you are home.
My daughter was trained by age 2 but continued to wet at night. The frequency has gradually decreased until she had maybe 2 or 3 wet nights during age 8. She has been much more likely to wet on the nights she is with me than the nights she is with her Dad (we have an equal number of nights with her).
I do believe my daughter sleeps more soundly at my home. At dad's home, they have cats, a dog, and her dad snores so loudly the whole house hears it. And dad is different than mom, in many ways.
Your daughter will grow out of this, but be patient, because age 7 or 8 is common before kids stop wetting at night.