They have different applications. Sometimes you want steel because you want the pan to lose heat rapidly, depending on what you're cooking. Other times, you want cast iron; you want slow temperature change.
A well-equipped kitchen will have both... and a Dutch oven, and...