~~First, the Z axis is commonly used to represent height rather than width.~~
Second, the mirror is not flipping anything.
It's just reflecting things in a straight line. This is easily demonstrated by holding a sign with a transparent background in front of the mirror. The image you see on the back of the sign aligns with the one you see on the mirror.
A person in front of the sign is able to read the words properly because, relative to you (and the sign) they are flipped. Their right eye is in front of your left eye and vice-versa.
The mirror gives the impression of a flipped image precisely because it's not flipping anything!
Edit: It's already been pointed out twice to me that Z for height is not in any way a convention. I never thought it was, which is why I used the phrase "commonly used" instead. Turns out that doesn't seem to be the case either, regardless of my personal experience so this is an acknowledgement of that mistake.