In the afterlife, God may be the ultimate ruler.
But in the here and now, Government makes and enforces the rules. Disobey Him and there will be Hell to pay in the form of harrassment, regulation, condemnation, fines and imprisonment.
The Boy Scouts are simply kneeling to their current Master in the here and now.
But Peter and the apostles answered, We must obey God rather than men.