At the very least, you'll want to keep the rain off the electric motor. Otherwise, you wouldn't believe some of the filth and grease I've seen compressors living in.

Water would probably be it's worst enemy.