Large tech companies have ladders for both engineering and management. There's nothing inconceivable about earning well in excess of $250k/year and writing code.
I'm not going to lie and say it's achievable for everyone, but your perspective is a very limiting one. A lot of people (in absolute terms) do the thing you're claiming is a myth at large public and private tech companies every year.