The battery is between the cabin and the outside air. The cabin is always far hotter than the outside air if parked in the sun, so that is the main source of heat when the car is not driven. If there is no active cooling of the battery when the car is parked then cabin overheat protection is the...