There is also much software that is complete garbage. If the ones with $500k TC are writing decent software, then those making $100k may be writing the garbage.
Depends a lot on where they're working. I know more than one person that had 15+ years experience that was making around 100k/year, then moved to a FAANG and hit > 500k total compensation in just a 2-3 years.