Because there is more to building an encounter then just XP. You also have to take into account the class minion, elite, solo, etc.), level, etc. of the monster.
Its the diffirence, as you showed with the Ranger, being a coin flip away from ending an encounter and having a nice properly paced...