I don't think that's quite correct; every CS program I've seen involves writing code, quite a lot of it. What they don't teach is /software engineering/: working large codebases, maintaining code, dealing with legacy code, long-term collaboration, working with product managed and designers, etc. That's stuff that you mostly end up having to pickup in the real world outside school.
I did B.S. in software engineering instead computer science in college, and there were classes that indeed taught the industry software engineering process like you mentioned.
Writing code and being formally taught a coding languages syntax and toolchain are quite different.