Of course, WebTransport also isn't real sockets. It's more like WebSockets but with more modern transport semantics such as unreliable data and multiplexing without head of line blocking (as long as it's run over QUIC).
For security reasons, browsers don't allow Web sites access to raw TCP or UDP sockets.