The reason is different pokemon species require different amount of xp points to level up.
Two kirlias will take the same amount of xp but a kirlia and a torchic may take different amount of xp .
The best example , after training a rayquaza to lv 100 , xp to current level is 1250000 and a blaziken is 1000000 .
You see.