Not all rose types smell as nice as others. There are countless types, all bred for specific characteristics over hundreds of years.
If one such characteristic is pleasant smell (and why would it not be), then the answer is obvious. By and large, roses smell nice because human bred them to.