Good question that actually made me reflect a bit.
To put it short it’s primarily just personal preference (mostly hardware) and hard to shake tendencies.
I’m still on the older 10.5” iPad Pro (when this breaks I’m definitely upgrading) and the keyboard is okay but I prefer a mechanical keyboard if I type more. I’ve tried connecting a Bluetooth mechanical keyboard to it but I don’t like the added layer of setting things up.
Also the moment I’m working on something for a longer period, the higher the chance that I’m opening up different references etc. and juggling multiple things is easier when not on iOS.
Btw thank you. Your question really made me think and when I switch devices next time I’ll probably ask myself why I’m doing it and not just because I feel like it.