The giraffe only receives 10% of the energy from the acacia tree because the other 90% was used in cellular respiration.
Each level only retains 10% of the original 100% of energy because no matter what animal species it is, it will use up 90% of the energy for cellular respiration.