[SPOILERS]
Because the Knight has no will of its own. That’s the whole point. The only reason it can accomplish the ‘true’ ending (or the ‘bad’ ending) is because it is truly empty, not because it acts in defiance of an imposed purpose. It didn’t leave Hallownest because it rejected the Pale King’s plans or something…