I'd add that there are a fair number of corporate jobs that involve writing to greater or lesser degrees. Leaving aside tech writers in documentation, there is also content marketing such as company blogs and a fair number of people who have additional responsibilities of various sorts but who write quite a bit (including even full books) as a formal or informal part of their job.
Some of these jobs are unlikely to be at SWE level but they are mostly reasonable corporate salaries.