Inherited from Middle French garnison, from Old French garnison, from garnir (“to protect”) + -ison.
Practice speaking and memorizing "garnison" and many other words and sentences in French.