Orthographic borrowing from Chinese 化學 /化学 (huàxué, literally “change + study”).
Apparently first cited anywhere in an 1855 text in Chinese, in the diary of noted intellectual Wang Tao. First cited in Japanese in an 1860 translation of a Dutch text by 川(かわ)本(もと)幸(こう)民(みん) (Kawamoto Kōmin).