Here's why:
* Verbs describe actions or states of being. "Prefer" describes the action of choosing one thing over another.
* Nouns name people, places, things, or ideas.
Example:
* Verb: I prefer coffee to tea.
* Noun: My preference is coffee.
In the second sentence, "preference" is a noun, as it names the idea of choosing one thing over another.