Raspberry Pi, BeagleBone and various arm based embedded systems played a much higher role in getting most linux, BSD tools working under arm.
Same thing that’s happening now with RISC-V and SiFive’s boards.
It’s not apple M1 that’s making this migration possible, its just the cherry on top of a cake.
The cake was all those consumer arm boards and dev kits which got in the hands of various OS developers, software maintainers. Who put in their time to port their codebases to arm and ensure compatibility.