If the car's been running, then the battery is cool. It gets cooled by the battery thermal management system. When you turn the car OFF, that stops, and the battery starts warming up due to ongoing chemistry stuff happening and heat conduction. You'll be better off plugging it in as soon as you pull up.