Why chinese wait till they get to their homes to open a gift or a present?

We do it in that way because that is most Chinese do.Opening the present immediately you receive it will be considered inappropriate because that shows you are way too eager to possess it ,which is a sign of materialism in Chinese culture.
Hope that helps.