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.
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.