Outback leaking hatch

what causes water, after a rain storm, to leak from the tail light sockets when i open the hatch of my 2001 Subaru Outback Wagon?