That's an excellent question! "Inhibit", "prevent", and "prohibit" are all used in similar contexts but have very distinct meanings. "Inhibit" means to slow down or stop the process of something, "prevent" means to keep something from happening altogether, and "prohibit" means to strictly disallow something from happening, regardless of if it is successful or not (the law prohibits illegal things, but they still happen anyway), and implies punishment for engaging in said thing.