Peer influence is quite powerful at every age. Keep conversation, insight and encouragement going with your daughter. My daughter was Level 9 and she might have been 11 1/2 at that time when she told me one day "I hate competing". This shocked me since she has never said this before. I recalled her telling me in the past so and so and so and so (several of her teammates) hate competing. I knew she got very nervous competing but I didn't think she "hated" it. I suspected it was due to hearing many girls around her saying they hated competing that she decided she hated it too. So, I told her if you hate it so much and it is not fun, she should stop competing but she can still take classes. Then I also told her, she should not be influenced by what people around her like or do not like and that she should figure it out herself. I further explained it is ok to be different and that her disposition on things will affect the outcome. If she hates competing, it will show and she will not do well at meets. This was the last I heard her say it. Shortly thereafter, she voluntarily told me while she does get nervous she likes competing.
To this date, she keeps a positive outlook when she competes despite still many of her teammates hating competion. Of course, my daughter was a lot older than your daughter and it was easier to reason with her. But as everyone stated above, getting and losing skills, liking and disliking gym, coaches, skills etc. will happen a lot in her journey. So mental fortitude is important and you can perhaps help in that department.