After 6 months your phone is at 97%. As the average phone loses about 1% a month you are way ahead of the curve.
Batteries are consumables; they lose a little capacity every time they are discharged, then recharged. On average this works out to about a 1% loss for every 25 “full charge cycles”. As one example, if you charge the phone overnight, every night (and that is what you should do; it is a best practice), it starts the day at 100%. If it drops to 20% by the end of the day before you charge it again overnight that counts as 0.8 full charge cycles (20% to 100%), or about 24 full charge cycles per month of use. For this example your battery capacity will lose about 1% per month. Of course, if the end-of-day level is higher than 20% the capacity loss will be a little less, and if it is lower than 20%, or you charge it during the day, the capacity loss will be higher.
Once the capacity drops below 80%, or if there is a message in Battery Health that the battery is not meeting peak performance expectations, it’s time to change the battery→iPhone Battery Replacement - Official Apple Support
The absolute best way to get maximum use on a charge, as well as slow the decline of battery capacity long term is to enable Optimized Battery Charging (Settings/Battery/Battery Health) and charge the device overnight, every night. The battery will fast charge to 80%, then pause. During the nighttime pause the phone will use mains power instead of battery power, allowing the battery to “rest”, and thus reducing the need to charge the battery quite as often. The phone will resume charging to reach 100% when you are ready to use your phone; it will “learn” your usage pattern. If you enable iCloud Backup (Settings/[your name]/iCloud - iCloud Backup) the phone will back up overnight also, assuring that you can never lose more than the current day’s updates. Here's more information→About Optimized Battery Charging on your iPhone - Apple Support
A battery is a chemical device, and chemistry is generally pretty variable and uncertain, as well as being analog, not digital. Apple specs the battery capacity to remain above 80% for 500 full charge cycles, but that is a minimum requirement; there is no published maximum expected capacity. So sometimes batteries will perform much better than that minimum specification, and sometimes the change in maximum capacity won't be linear.
All iPhones have a specification for the battery. As an example, for the iPhone 14 Pro that is 3200 milliampere-hours (MaH). So the battery monitor is calibrated for 100% at that value. But there are variations in manufacturing, so some batteries will have less capacity, and some will have more. Suppose your battery had, say, 3520 MaH capacity (10% over standard). That would still show as 100% (even though it was actually 110%), but as it aged the health would stay at 100% until it fell below 3200 MaH. This would appear to you as if your battery had fabulous life, until suddenly it didn’t.