NPC killing mobs through the floor

Had one NPC with me when looting a house. Basement was full of spiders and NPC armed with a makeshift awlpike, stopped at some tile inside of the house and started killing spiders through the floor.