The space between the outside and inside of the roof - there is a 3-6" space filled with insulation and roof trusses. As temperatures change it allows venting of hot air, or in breathing with outside air as the space cools.
Regarding the water in your basement after rains, are you travelling on the road or just sitting in a campground?
Brian