There are a few reasons that styrofoam is used in potting soil. First, it's cheap and easy to get. Second, it helps the soil retain moisture and nutrients. Third, it's lightweight and easy to move around, which makes it easier to mix the soil and water. Fourth, styrofoam doesn't decompose, which means that it can help save money by prolonging the life of the soil.