A quiet compressor?

Don't box them in. Don't enclose them. Look at the compressor heads. They have cooling fins for a reason. If you box them in they get very hot, can damage the compressor and the electric motor (which gets very hot as well) and heat creates moisture. You don;t want that in your air lines.
Mount the compressor outside and make an enclosure.

This^^^

Cheap metal shed next to the garage works.

You don't really want the compressor in the garage with you if you are painting. Outside, the compressor will get fresh air which is what it wants