Earth acts as a ground of zero potential. So when a positively charged conductor is connected to the earth, positive charge flows into the earth and as a result, electrons flow from earth to the conductor.