> And somehow they should be paid lot of money for this...
They get paid to be productive from the point of view of the company paying them. And by slapping layers of stuff together until it barely works, apparently they make profit for their company.
They are not paid to write optimized (or "good" or "useful for society") code.
Which is sad, no question asked. But it makes perfect sense given the system we live in.