In some turned into a girl stories, it could be due to a curse. For example, if someone offended an old witch or a powerful spirit, they might be cursed to change into a girl. Also, there could be a strange natural phenomenon. Like in a place full of strange energy, a person could be transformed into a girl just by being there for a while.
It could be a wish that went awry. Suppose someone wished to understand the opposite sex better and some supernatural force misinterpreted it as a wish to become the opposite sex. Or perhaps it's a result of a time - travel accident. If the laws of time and space are disrupted, a person's physical form might be altered, turning a boy into a girl.
Magic is a common reason. Maybe a mischievous fairy or a clumsy wizard cast a spell wrongly. Another reason could be a strange scientific experiment gone wrong, like some sort of radiation or chemical reaction that alters the body's form. Or it could be a curse from an ancient artifact. If someone disturbs an old tomb and takes an enchanted item, it might put a curse on them and turn them into a little girl.
Family problems can also play a part. For example, if there's abuse or neglect at home, it can make her lose faith in goodness and turn bad. She may act out in rebellion as a way to cope with the pain.
It could also be due to past experiences with men that were not positive. If she had bad relationships or experiences with men that made her feel unfulfilled or unhappy, she might be more open to exploring relationships with women. Also, some psychological research suggests that there may be some inborn factors that could play a role, but it's still a complex area of study.
One possible reason could be as a form of punishment. For example, if a character has been misbehaving in a way that is considered inappropriate for their gender, magic might transform them to teach them a lesson. Another reason could be an accident. Maybe a young wizard was practicing a spell and it went wrong, resulting in the transformation. Or it could be a magical curse placed on someone because of a feud between families or kingdoms.
Magic could be one reason. Like in a fairy - tale world, a magic spell might be cast on the boy. Another reason could be a scientific experiment gone wrong. Maybe some sort of genetic - altering experiment that was supposed to do something else but instead turned the boy into a girl.
Some kind of scientific experiment error. For example, if there was research on hormonal or genetic manipulation and something went wrong during the process.
One possible reason could be a magical curse. Maybe she offended a powerful sea witch who then turned her into a mermaid as punishment. Another reason could be a strange accident involving some sort of enchanted water. For example, if she drank from a forbidden pool in an old, magical forest that was somehow connected to the sea. Or it could be a result of a selfless act. Perhaps she saved a mermaid's life and in return, the mermaid magic transformed her into one of their kind to join their underwater world.
One reason could be revenge. Someone might want to take revenge on the boy or his family by changing his gender. Another reason could be a crazy experiment. Some mad scientist - like character in a story might think it's an interesting experiment to see how a boy would adapt to being a girl.
One possible reason could be a magical accident. Maybe mom was trying to do something else with a spell or charm and it backfired, turning the person into a girl.
A scientific experiment gone wrong. If he was in a science - fiction type of setting, perhaps some crazy scientist was testing a new device or formula that had unexpected side effects of gender transformation.