Every little crack is filled with foam in an effort to reduce airflow thru the walls. When it's zero degrees out and the wind is blowing, even small gaps in the exterior walls can cause drafts and heat loss, so they take care to plug every last hole.