This gives any given domain a chance to indicate that it's not actually supported on the current system. If dom_probe isn't supplied, we assume the domain is universally applicable as most of them are. Keeping fully-initialized and registered domains around that physically can't work on a large majority of FreeBSD deployments is sub-optimal and leads to errors that aren't consistent with the reality of why the socket can't be created (e.g. ESOCKTNOSUPPORT) because such scenario has to be caught upon pru_attach, at which point kicking back the more-appropriate EAFNOSUPPORT would seem weird.
The only initial consumer of this is hvsock. It could be debated that perhaps hvsock shouldn't be in GENERIC given that HyperV has a relatively low share of FreeBSD deployments, but simply not initializing the domain on non-HyperV machines feels like a reasonable compromise.