Hydrogen and oxygen are present in large amounts in nature and are reactive enough to form compounds with a variety of elements.Thus, hydrides and oxides of elements were easily found in nature and their properties were widely studied and compared.
Hence, Mendeleev considered hydrides and oxides in categorizing elements.