I'm sure every singer uses their own experiences whilst writing a song. But do some go even further and have relationships just to be dumped and make money off of human emotions? I'm sure they do.
As for Swift. She's young. She's immature. She's rich. So, it works for her.