The tidiest explanation for the pop star’s success is that she befriended an underestimated audience of girls and young women. That’s only part of the story.