The goal of the CEO is to drive the stock price up in whatever horizon investors care about. Usually it's not a long horizon. It's not to build a sustainable product or even a product at all.
Many CEOs can't even do that properly. Check out Unity as a shiny example and they still get fat paycheck. In fact they gave themselves nice raises too if you check the SEC docs.