ref
late 17th century: familiar abbreviation of husband.
Diminutive of husband with + -y.
hub + -y
hubby (n.)
colloquial shortening of husband (n.) attested from 1680s, with -y (3).