This is a big problem in startups. Developers with very little to nothing of not only management experience but even development experience become VPofE/Directors/CTOs and wreak psychological havoc on people they are supposed to manage. Sometimes they do it on purpose because of insecurities or many times just unintentionally.