When you say 'prevents you from writing apps' do you mean native iOS apps which (at least to my knowledge) can only be done on Macs? Or do you mean other types of applications?
iOS/iPadOS, sure. But macOS apps can be written in any language that can compile or run on macOS, and you can cross compile from any OS assuming the compiler is available on that OS (that is, you can cross compile on Windows or Linux for macOS). It's producing and distributing iOS/iPadOS apps that Apple has kept locked down.