Comment by bombcar
Pis are a relatively quick and cheap (including power) way to get "another computer" that isn't a VM or otherwise dependent.
VMs can add a lot of complexity that you don't really need or want to manage.
And (perhaps unadmitted) lots of people bought Pis and then searched for use cases for them.
They're really not that cheap anymore, though. If you just need "another computer" you can probably find something more capable in the used market.