Songwriters take inspiration from pretty much anything. Nature, their own health, sad stories they read about in the paper, and other people. Sometimes, though, when a song is written with a specific person in mind, it just so happens to be about a celebrity.
For better or worse, these songs were all written by one celeb about another. Maybe you knew that was the case, or maybe you didn't.