In economics, how much you get paid is a function of the value society puts on your skills divided by how common your skills are. So, Lebron James makes millions because we value the ability to throw a ball through a metal ring, and we demand that someone be so good at this that only a handful of Americans can fulfill these positions. I'll let you continue the reasoning for teacher pay as a homework exercise...