Phone batteries degrade over time, but heat and use habits are a larger danger than keeping your phone plugged in.
It's happened to the best of us. You're out and need to charge your iPhone, but you left your charger at home. If you're lucky enough, someone will let you borrow their charger for the time being, or ...