I, like Dan, think it has nothing to do with religion and more to do with an oath of patriotism. The best way to see this is to imagine one so patriotic that he or she will swear allegience to this country, and if a God exists, he or she will be willing to make that God a witness to that oath...