The Latin word "inhibere" means "to hold back, restrain, check". It is made up of the prefix "in-" (meaning "in, into") and the verb "habēre" (meaning "to have, hold").
English adopted the word "inhibit" in the 16th century, and it has been used ever since to refer to the act of holding back or preventing something.