This is a common occurrence. The tail light gaskets fail and leak. Just needs to be resealed. Mazda may or may not cover it, just depends on your dealer.
Also some have drilled a couple pin holes in the bottom of the housing to drain it, but I would not recommend it.