Because of the sticky nature of the geometry in SketchUp. Since the roof geometry is still ungrouped, adding more geometry in contact with it results in that new geometry joining with the existing geometry.
Make a component or group of the roof before you draw the rectangle for the post.