A local iPhone backup holds a full copy of the phone’s data, and the Mac keeps it after you’ve stopped using that phone. If your Mac’s SSD feels full, old backups of phones you no longer have are one of the first things I’d look for.
Open the Storage settings and look for the iOS Files category. Apple describes it as the place that holds iOS backups and firmware:
System Settings > General > Storage > iOS Files
Click the info button next to the category to see the backups and their sizes. Select one you no longer need and click Delete, or use Show in Finder to see where it lives. Apple’s own article gives that location as ~/Library/Application Support/MobileSync/Backup/, and you can open it with Go > Go to Folder in Finder.
A second route works per device: connect the iPhone with a USB cable, select it in the Finder sidebar, click the General tab, then Manage Backups. Right-click a backup and choose Delete, Archive or Show in Finder. That’s handy when you have a backup of the current phone that you want to keep for good. Archive it, and later backups won’t replace it.
The caveat is that this is final. Apple says plainly that you can’t recover a backup after you delete it. So before I’d delete the backup of an old phone, I’d check that nothing on it is missing from iCloud or the phone that replaced it, such as old messages or the photos of a phone you sold.
Further reading: Change Storage settings on Mac, Locate and manage backups of your iPhone, iPad, and iPod touch