If the main reason to use macOS is that it's required to develop iPhone apps, a touch screen helps with testing them.
I have a Linux laptop with touchscreen, and my main use is to test the touch interactions on web apps, sometimes Android apps.
Sure it's possible to open it on the phone, but that's an extra step usually not justified.
For a dedicated iOS dev that's worth the hassle, for someone managing a team of devs or employees only needing apps to run without requiring a full dev env, it's quite convenient and potentially cheaper.
https://www.apple.com/v/macbook-pro/proled-xdr-display/a/ima...