Perhaps a princess married a general? It can happen (I saved my Danish Kingdom by marrying a pincess of to a couple of generals - got a civil war though).

It's possible the new king was a brother of the original king.