Most of the highest paid athletes and actors are union members. Union membership doesn't have to mean everyone is paid the same. Teachers having the same pay has more to do with them being interchangeable than being union members.
Actors and athletes have extremely high visibility. They are singled out by fans who will show up to movies and games on that star power alone. A similar dynamic will not develop in the game programming world where even phenomenal developers labor in obscurity.