For all we know this may not be a coincidence. Just like we saw what apparently happened to MM in the past, maybe something happened to Barry as well that made Wally use the same costume. I do find it a little suspicious The Flash has been strangely absent during those flashback scenes.