macOS is stuck in a time capsule with Bash 3.2 (from 2007) because Apple refuses to ship GPLv3 software. WSL/Linux usually has Bash 5.x.