Just a few weeks ago, I met a CTO that got the company to a series A level of revenue by building the whole product over two years. Was fired by the CEO, who brought on new investors, recapped the equity table, and drove his option value to almost nothing.
The guy is now a senior engineer at a decent company, but effectively had 10+ million of value he created lifted from his hands.
These stories are extremely common