Inverted commas are positioned so that the first one is right-leaning, and the second one is left-leaning, coming after the ending punctuation mark of the direct speech sentence.
This is due to the operating system defaulting to its standard text directionality when a typed character (such as a punctuation mark) does not have a specified directionality.