7% loss in 6 hours is nothing to be concerned about. The phone is constantly working to remain connected to a network, it's syncing data, it's refreshing in the background, etc. Just because you're not using the phone, doesn't mean it's not working.
The bigger question is why you are not charging your phone while you sleep. It is the single best way to preserve the health of your battery, by plugging your phone in to charge when you go to bed at night, leaving on its charger, ALL night, EVERY night, with Optimized Battery Charging enabled and the phone connected to Wifi. Not only will you awaken to a fully charged phone, ready for a days use, but one which is backed up nightly to iCloud, so you'll never be able to lose more than a couple hours of data, should something go wrong.
Read these two links:
Batteries - Maximizing Performance - Apple
And this about when to charge your iPhone --> When to charge your iPhone or iPad - Apple Community