This article refers to hydrogen as a molecule, H2; this molecule isn't produced in nature on Earth and must be made by people in a lab or industrial facility. Although molecular hydrogen is the most common molecule in the universe, it's hard to tell exactly how much there is. This is distinct from atoms of hydrogen, which occur in great abundance on Earth and elsewhere in the universe.
Hydrogen can be seen as energy currency since it does not naturally occur in its molecular form on Earth, and it must be made by inputting some energy. This turns it into a secondary fuel (a high density repository of energy that's easier to transport and use). Primary energy is needed to create hydrogen fuel. This energy comes either from burning fossil fuels (or potentially nuclear power, which David S. Scott wrote about extensively), or by using intermittent electricity sources like solar power and wind power to provide the necessary energy. While it may not sound like an efficient use of energy to do this, hydrogen fuel is around ten times more energy dense by volume than Lithium-ion batteries, and more than 100x more energy dense by mass! This means that in the future, if infrastructure changes, many "alternative" sources of primary energy, like wind and solar power, may be used, the energy they create stored in hydrogen fuel, which is far more efficient than batteries.
While hydrogen is an energy currency, rather than a primary energy source, it is still considered to be a fuel (although not a primary energy source, it's a material with a high energy density source of electricity that can easily be transported. Hydrogen is used in one of two ways: either in an internal combustion engine (burning it), or by reacting it directly with oxygen in a fuel cell to create electricity and run an electric motor. The former powers rockets, and the latter is how hydrogen-powered cars work.