Hydrogen was used because it's lighter than air, providing the lift needed for the airship to float. Despite being highly flammable, it was chosen over helium due to restrictions on helium supplies by the United States, which at the time, was the primary source of this less flammable gas.