Why is it that you get a cold or two

Why is it that you get a cold or two each year but if you had a case of measles, it was a one-time occurrence?