The emperor survive because the old man survived. Whats worse, he was spared because the MC couldn't care less. Replace this MC with someone a bit more ruthless and you get them raiding the palace anyway as retaliation for blatantly SENDING assassins the maybe framing the stupid prince if they need an excuse. In other words, the Emperor would have normally been killed immediately because his initial plan failed and had no contingency.