There are a LOT of bad CEOs.

There are also a LOT of bad software developers.

When they meet, the software developer is fired.

The CEO exits after a while, after exercising their stock options...

bad CEO + bad software developer = new CTO.