It's a compound word. They're pretty common in English, German, Sanskrit, and other languages. Is the set in sunset a noun? The sunset ~ the setting sun. Perhaps. It's interesting that the resulting compound is a noun and not a verb. In kidnap, it seems to have gone the other way; it's a verb. Maybe not.