Why wasn't it worth finishing the game in their pipeline? If it's mostly developed and they treat sunk costs as sunk costs isn't it basically throwing away money to cancel something that's pretty far along in development?
If anything, what they did was the rational decision.
I'm willing to bet that they did not expect to make more than X by selling the game.