The difference is quite deliberate. A Mac is much more flexible about installing an older macOS than an iPhone is about installing an older iOS.
The key difference: Mac = computer, iPhone = tightly controlled appliance
On a Mac, Apple provides mechanisms to obtain and install previous compatible macOS versions. Apple currently documents downloading older installers such as Sonoma 14, Sequoia 15, Ventura 13, etc., and even creating a bootable installer.
So, for example, if your Mac supports Sonoma, you can potentially go:
macOS 27 → macOS 26 → Sequoia 15 → Sonoma 14
provided the Mac is compatible with that version, and you use the appropriate installation method.
The iPhone is fundamentally different.
Why can't you simply go from iOS 27 → iOS 18?
Because an iPhone's firmware installation is controlled by Apple's signing/authorization system.
When you restore an iPhone, the computer doesn't simply say:
"Here is an iOS 18 IPSW. Let's install it."
The iPhone and Apple's servers must agree that the specific iOS build is authorised for that device.
Once Apple stops authorizing an older iOS version, a normal Finder/Apple Devices restore cannot install it.
That's why you can have an iOS 18 IPSW file sitting on your Mac and still be unable to install it on an iPhone that has moved to iOS 26/27.
But there is an important exception
If you're talking about iOS 26/27 beta, Apple does officially provide a downgrade route — but only to the currently supported public iOS release, not to an arbitrary old version such as iOS 18.
Apple's current instructions say that if you've installed an iOS beta, you can restore the device to the latest publicly released version, and this requires erasing and restoring the iPhone.
So the distinction is:
MaciPhoneOlder macOS installers are providedOlder iOS IPSWs may existCan install compatible older macOSCannot normally install an unsigned iOSBootable installers possibleNo equivalent user-controlled bootable iOSUser has substantial control over startup OSApple tightly controls iPhone firmwaremacOS 27 → Sonoma can be possibleiOS 27 → iOS 18 generally impossibleCompatibility is the main limitationCompatibility and Apple's signing are limitations
There is another important reason
A Mac's hardware/software architecture is designed around the idea that the owner can erase the internal disk and reinstall an operating system.
Apple even supports installing macOS on an external drive and using that as a startup disk.
An iPhone doesn't work that way. The operating system, firmware, Secure Enclave, boot chain, device-specific security components and activation mechanisms are much more tightly integrated.
Apple's security model essentially says:
"You may reinstall iOS, but only the versions Apple currently authorizes for your device."
That's also why Recovery Mode doesn't solve the problem. Recovery Mode can reinstall iOS, but it doesn't permit you to install an obsolete version. Apple's current restore instructions describe Restore as reinstalling iOS and erasing the device.
So your observation is absolutely correct
If you are thinking:
"Why can I take my Mac from a newer macOS back to Sonoma, but I can't take my iPhone from iOS 26/27 back to iOS 18?"
The short answer is:
Apple treats macOS as an operating system that the Mac owner has considerable control over; iOS is a signed device firmware platform where Apple controls which OS versions can be installed.
And there is a particularly interesting consequence: Apple could technically make iOS 18 installable on an iPhone that is capable of running it, but Apple chooses not to authorize that installation once the signing window is closed.
That is the real difference — not primarily hardware capability, but Apple's firmware-signing and security architecture.