Having the same environment on your local machine as on your target server is a real productivity saver and a good reason to use Linux.
Additionally I've recently started using elasticsearch docker containers and I found Linux is a far better host than Docker for Mac (as it still runs a tiny Linux vm with associated slower disk access).