Excellent point! As you imply, bad code compounds the need for job openings:
* bad code requires more maintainers than good code
* it's hard to find people to work on it — partly because the code is bad, and partly because whatever process that _led to_ bad code is probably still around