The majority owners felt that it wasn’t important to keep the only person who knew the product employed.
The literally felt they could exit with a patent and a prototype that none of the remaining people understood.
The engineer spent 3 months cleaning up previous bad engineering decisions, and spent another year making the product strong enough to be used as a test system.
Then they did a round of funding, but paying that engineer was not where the money was going to go.