At the same time that's likely at last somewhat if not largely due to the 8 being a new phone with a new battery while the 7 was already had at least a somewhat used/worn battery.
Check battery health on your phone. What % does it list? I ask because Apple will put in a new battery until the end of the year for $29. Before you go buying a new phone check your battery health percentage in ios settings.