Yes maybe he was trying to get warm. I had two rats living under the door to my terrasse whom my dad insisted we had to murder. It was an awful experience ?Yes poor guy. I don't know but a friend said if the rat can get his head in, then the body will follow. The a/c was making noise and I just assumed something wasn't right and needed repairing. I think it happened during the winter so maybe seeking warmth there.