I’m not sure that scripture mandates an all male priesthood. But I do know for a fact there is nothing the Bible (that I can find) in either the Old Testament or the New Testament which mandates celibacy as a requirement for serving in the priesthood. In the early Church, popes, bishops, and priest were married men. As late as the 12th Century the overwhelming majority of priests and bishops were married men. Celibacy was introduced in the Middle Ages as a response to nepotism and corruption in the Church.
And dogs once flew spaceships.