The test explicitly wanted a UDP connection when a TCP connection would suffice. This was a remnant of back when the test was part of a multi-purpose autotest that didn't attempt to connect to TCP relays and needed a UDP connection specifically.