Apparently git copied the 'master' name from bitkeeper, where it was used in conjunction with 'slave' branches: https://mail.gnome.org/archives/desktop-devel-list/2019-May/...
Follow this link to the Twitter thread where the guy (Pete Baudris) who picked the term as used in Git, explains his reasoning.