You’re subjecting your iPhone to extreme temperatures.
Apple’s newest lithium-ion batteries charge faster and last longer than their predecessors. However, none of them perform well under extreme temperature changes. That’s why Apple recommends using an iPhone between 32º and 95º F (0º to 35º C) to protect the battery.
Also avoid storing your iPhone in places that could experience temperature extremes, like your car on a hot day.