There doesn't appear to be any historical explanation for consuming alcohol on the Fourth of July. It seems more than likely, however, that the reason hot dogs and a can of beer on Independence Day became as American as apple pie is simply that they were marketed that way. Still, fireworks are probably a lot safer when they're controlled by sober people.