Not sure exactly where the data comes from, but the game uses an API at https://neal.fun/api/password-game/wordle?date=2023-06-15
Seems like it has answers up to July 30, so he's either a time traveller or it's possible to get future answers by looking at the Wordle source.