For pairing the [blossom algorithm is used] (Blossom algorithm - Wikipedia)
Since it’s round 5 I’d guess the #1 had already a match against #2 and #3, also the pairing does not account for tournament points.