You would use the hydrogen in gaseous form to reduce the net weight of the aircraft to be lighter than the surrounding atmosphere (hydrogen gas has an extremely low density). This enables the craft to float without having to burn fuel just to stay aloft.