芳 fāng means 'fragrant' — aromatic compounds were named for their pleasant smells.
烃 tīng is the general word for hydrocarbon, coined from
碳 (tàn, carbon) +
氢 (qīng, hydrogen). So
芳烃 literally reads as 'fragrant carbon-hydrogen' = aromatic hydrocarbon.