I think the answer to your question is that:
There is chemical energy being produced (by the water) and that causes the base of iron to absorb the heat. Then when the heated base of the iron is placed onto the shirt, the heat flattens the wrinkles on it.