Why does my iPhone keep turning off by itself?

Sounds like your iPhone’s decided it’s had enough of this world. Could be a battery calibration issue, software glitch, or maybe your phone just likes to be dramatic. Step 1: Check for iOS updates. Sometimes older systems get cranky and need a refresh. Step 2: Hard reset. Classic IT move—turn it off and back on. Step 3: Test it in low power mode. If it behaves, your battery might be throwing tantrums. Step 4: Backup your phone and reset to factory settings. Yeah, it’s a pain, but at least you’ll say you tried. If all else fails, maybe the battery or internal hardware is dying. Take it to Apple and let them tell you something obvious like, “It’s broken.”