The iron uses heat waves to flatten the shirt. You can also you water to help the process and create steam. The steam will help soften the shirt making it easier to flatten. I am not sure if this is correct but it should help to understand why the shirt gets hot.