My 2021 had a recall notice that was vague but something about the battery. I figured I'll have it done on the next oil change which wasn't for another 5 or 6 months. Never had an issue until low and behold the day before taking it to the dealer for the oil change and recall the battery was dead. Insane timing. I would expect whatever the ECU update was to fix the issue in the 2021 would have already been applied in a 2022 but if you bought an early release (towards the beginning of the year) 2022, maybe not? My own opinion is that many of the ideas suggested here are far fetched. The car is so sophisticated with it's electronics, such a higher percentage of issues these days boil down to software bugs (or firmware if you want to call it).
You very well may have an ECU software issue that Mazda has yet to fully diagnose and issue a recall for. The car is of course never completely "off" hence remote start and notifications, etc. It always has a cell connection and is monitoring things with the car. The ECU software can go haywire and drain the battery.