I wouldn't say they write software more than anything. I would say that there's a steadily increasing amount of time and energy invested into writing software, and very poor coding practices are used because of their lack of a formal grounding in CS and their short-term focus on obtaining the results necessary to publish their next paper and/or obtain their graduate degree.
That's like a classic scientist - software engineer argument. The scientist says he wants to prototype with quick dirty code while the software engineer wants to write great refactored code.