It's objectively not true that salespeople in general get paid more than software developers. Maybe the very top salespeople get paid more than the very top software developers, but that is just because of how easily the top salespeople can prove that they are at the top.