This is the honorific term. In the meaning of „old man“ attested in 1777, in the present form in 1889.
Comments on word
in the form ōji „great father“attested in annotated Chinese text in 令集解 (738), in wabun in 源氏 (1000). Present form attested in 19th century. Other variants for „old man“ jijii (1770), ojii (1777).