Thanks. It is called lightmap light leaking. Some of the top-most lightmap pixels for the walls are partially below the ceiling plane and partially above the ceiling plane. Where they are more above than below light leaks from the outside to the inside. (The same for bottom-most lightmap pixels for the walls and the floor).
To fix it please add outer surfaces for the ceiling and floor (like with vertical walls).