Do mechanical and chemical engineers have this much mental anguish over their professions?
It's possible that software development attracts more creative, nonconformist people than engineering because there is a much higher barrier for creativity and self-direction in engineering.
Engineers also tend not to have blogs to rant about this stuff, so if they do have anguish they don't publicize it. It's all kind of a generalization though, so YMMV.
How often do you hear a mechanical engineer leaving work to start a new company or doing a 'Mechanical' start up and selling to for big money?.
I think when you have few options and when people you identify with are doing what you are doing, these feelings of not contributing/not doing anything else are less.