It could have been a curse, a spell, someone rewriting reality, it could be any number of things that led to Kevin ending up with a vagina between his legs. But the why is not important at the moment, the why is for Kevin to figure out.
Before the story can go any further, we need to know just who Kevin is.