The only way to resolve this is to remove both partitions, reformat the entire drive as APFS and reinstall macOS. I would use a bootable Monterey installer flash drive to do that, using Disk Utility from the flash drive. (For the reason that your current bootable partition is the 2nd partition on the internal drive, not the 1st partition. In this case, I cannot tell how things would work if you booted directly into Recovery Mode on the internal drive; I suspect you would not be able to remove the 2 partitions that way.)
After doing the above you will have a single APFS Container Disk utilizing all the space on the drive, and have a macOS Volume inside it. If you wish, you can then create additional Volumes inside the same Container Disk; these may be used for data or for different versions of macOS.
Be sure to back up any & all data before working on the drive.
In your case, you *CAN* resize (shrink) existing Container disk1 ... click & drag counterclockwise the grey marker dot at roughly the 10:00 position in the diagram. (The + and - signs are only used to add or delete partitions, not resize them.) Although it may be resized, I don't recommend doing it. I suggest you should remake the entire disk as above.
To repeat ... be sure to back up any & all data before working on the drive.
BTW, is this an Intel Mac or an Apple Silicon Mac?