Roofing felt is a moisture barrier so when the hot air is rising and reaches the roof, any moisture in the air condenses underneath the shingles which will get caught by the roofing felt.