Here's why:
* Prefixes are added to the beginning of a word to change its meaning (e.g., un- in unfriendly).
* Suffixes are added to the end of a word to change its meaning or grammatical function (e.g., -ity in hostility).
"Hostility" is a complete word with its own distinct meaning.