Get a battery tender or smart charger plugged in whenever the bike sits for more than a week or two - that's your main solution here. Modern motorcycles drain their batteries even when off because of parasitic draws from the ECU, security systems, and other electronics that stay powered 24/7. Your 2023 bike definitely has this, and it's completely normal. Most modern bikes lose maybe 1% of charge per day just sitting there, so two weeks will easily kill a battery if it wasn't fully charged to start.
The thing is, even "turned off" bikes are kind of still on in a low-power state. The immobilizer, fuel pump controller, instrument cluster - they're all drawing tiny amounts of current continuously. Add in any aftermarket electronics you might have and it gets worse. If you had the bike at like 80% charge when you parked it, yeah, two weeks is enough to drain it completely depending on the battery capacity and exact parasitic draw on your specific model.
To figure out if something's actually wrong, you could measure the parasitic draw with a multimeter set to amps, but honestly most people just grab a battery tender and call it solved. They're cheap (like $30 - 60) and save you from dead batteries constantly. Just unplug the tender before you ride. If it's draining way faster than normal even after ruling out obvious stuff like heated grips left on or a faulty relay, then you might have a real short, but in 2023 bikes it's almost always just the normal parasitic draw being worse than people expect.