This is extremely normal for any phones more than a couple years old. Wifi / cell network polling for messages uses a lot of battery, and I only remember my phone getting smarter about it around 2019? (Most phones now will detect you're inactive and poll network much less frequently overnight for example)