The game treats a roof construction as a containing structure of of a tile, as a layer of abstraction due to the game engine (I believe). In the game play sense, think of it as your character building a thatched roof, and making a tamped earth floor underneath it at the same time.