What is the officially reason why if you play something like wrath of god with samurai of the pale curtain in play all creatures are removed? Is it last known information or something else?
Also, is it the same answer/reason if Nevinyrral's Disk is popped with compost in play and a bunch of creatures?
Actually, both Matt and Jacob are a little off with their explanations, and the reason behind these two are different. While it is true that triggered abilities go back and look at the game state just before the triggered ability would trigger, static abilities are handled a bit differently. In the case of Samurai of the Pale Curtain's ability, which is a static ability, the ability looks at an event that is going to happen (a permanent going to the graveyard). If that event were to happen, Samurai of the Pale Curtain's ability "changes" it to something different (the permanent leaves play instead), modifying the event that is going to happen. So, it looks a little like this:
Event to happen: Permanents go to graveyard (as a result of Wrath of God or Armageddon)
Replacement: If permanents go to graveyard, they are removed from the game instead.
Event that actually happens: Permanents are removed from game.
Because Samurai of the Pale Curtain's ability is functioning at the point the event would occur, it will modify the actual event that happens. This is why Samurai of the Pale Curtain removes itself from the game, as well as any other permanent that would normally go to the graveyard at the same time the Samurai does.
The applicable rules are 217.1d, 419.4, and 419.5.