It is earned because someone else chose to write it: a journalist, a commentator or a customer. That makes it more credible than advertising and harder to control, which is why PR teams monitor it closely.
Earned media is one of three types, alongside paid media, which you buy, and owned media, which you publish. Most monitoring and PR measurement is about earned media.
Track earned media in Prevail