Blue is also used to refer to a type of humor that is raunchy or refers to sex or bodily functions. A "Blue Comedian" will do lots of "Blue Material"

I don't know why or how this came about, it just is.