Inherited from Middle French hostile, hostif (this form with a change of suffix), borrowed from Latin hostilis.
Practice speaking and memorizing "hostile" and many other words and sentences in French.