The rich entertainers are worth more because they provide value to very many people. It adds up. Each teacher only provides value to about 30 people.
Total pay for all teachers is far in excess of total pay for all entertainers. Measured that way, we clearly do value the teachers more.
It's just that an individual teacher is not very productive.
Some entertainers are not productive. Being a clown at small birthday parties is seldom lucrative.
You’ve got to think of all the people a teacher teaches to over their career and the strength of the interaction. Yes entertainers can make a song that winds up with astronomical airtime. But teachers inform how people think throughout their entire lives.
The takeaway is that Econ theory only explains what it’s capable of explaining. The real market clearly has a lot more going on than purely rational actors exchanging goods and services.