That is not correct. Globally 75% of hydrogen is produced from Natural Gas:
https://www.iea.org/reports/the-future-of-hydrogen
See section on production.
The most commonly used process creates a mixture of steam, hydrogen and CO2. The water is condensed and the CO2 removed to purify the hydrogen product. The CO2 is a concentrated stream. This is sometimes captured and sold as a byproduct (eg food grade CO2 for beverages or dry ice).