My understanding is that the reason for putting the period inside the quotes has to do with structural mechanics of old time printing. the period haging loos outside the closing quote would tend to break off or some such foolishness. My own standard is to put the punctuation inside or outside the quotes depending on whether it's part of whats being quoted. E.g., Did you say "I'm leaving"? or I asked him, "are you going to the store?"