Water gets trapped and turns to damp
Foam doesn't breathe. If a tile slips or flashing fails, water seeps in behind the foam and has nowhere to go. It stays there, soaking the timbers and breeding mould inside the loft and walls. By the time you notice, there is already damage.