I think the ref expected Thomas/ Wilson to get control of the ball, even if it was a row Z from Thomas. “ Advantage” in a way, or an attempt to keep the game flowing. When he realised it was a defensive cock up, he rectified the situation by awarding a goal kick.
Alternatively, the ref is a...