When did Apple start disallowing local backups? I'll admit I haven't tried recently -- there's no data worth backing up on my iPhone anyway -- but it definitely worked just fine a few years ago. Apple's "Back up iPhone" support page[1] agrees with me.
[1] https://support.apple.com/guide/iphone/back-up-iphone-iph3ec...