And yes, I've done both. Sitting in a chair in a nice warm room, writing code, is a considerably more pleasant activity that scrubbing out public restrooms.
Doesn't change the fact that you have to do it to eat, and you're slaving away your life doing things you don't want. Not everyone is lucky to end up in a software project they enjoy, not to mention having a comfortable software job.