You made an unfortunate assumption. No iPhone EVER sold is waterproof, including iPhone 15. iPhone's are Water Resistant, NOT waterproof. Read this link and pay attention to the things Apple specifically says NOT to do --> About splash, water, and dust resistance of iPhone 7 and later - Apple Support
Also note that the IP rating of iPhone is tested in lab controlled situations, which do not mimic real world use.
Since you subjected your iPhone to water, Apple won't repair the phone under warranty. Do NOT attempt to charge your iPhone. If you can backup your iPhone, do so immediately, then power it off and let it dry for a couple days. Do NOT put your iPhone in rice, which can cause more harm. And possibly be prepared to purchase a replacement iPhone.