I actually think a wide majority of SWEs, pre-AI, were in fact primarily paid to write code.
Most people don't do this for the love of the game.
Large corporations needed java code as a means to an end and an army of workers needed a paycheck. That dynamic is coming to an end.
This. The JIRA mills where folks log in, say "no blockers" in a half-hour standup, fix an endless stream of tickets, then log off and go do what they actually want to do. That's over, thankfully.