It’s a tradition from the fixed-width font typewriter era IIRC. Quote mark followed by period looked bad because of all the whitespace.
British English puts commas and periods (full stops) outside the quotation marks unless the quotation is also a complete sentence or the punctuation is part of the quotation.
Source: https://www.unr.edu/writing-speaking-center/student-resource...