Well, this starts at the top.
Treat people with respect, pay them decently (it doesn’t need to be MANGA crazy), and promote good management.
We would probably be shocked at how engagement, morale, productivity, and deliverable Quality go up.
When the only carrot is money, you’re just going to get short-term mercenaries that don’t care about what they do, who they work for, who they work with, and bounce from job to job; doing terrible work (even if they are quite capable of doing good work).