I think you also conflate the way which something is built with the specification it is built against - like interfaces vs implementation details. If you tell companies to build a certain kind of roof, with ports and wiring, then they will not receive any money if they don’t meet your spec. They are free to use the kind of wood, nails, wires (as long as thick enough) that they like, and this is where they can compete against each other.
https://www.amazon.com/dp/B002OU6ZSA/ref=cm_sw_r_cp_apa_tbA-...
Now that I think about it though I believe you are correct about the diameter of the port being consistent. It is indoor plumbing valves that I've run into a variety of sizes of. 1/2" vs 3/8 compression.
There are other types, no EU involvement here ( yet ).
Electrical is arguably the most regulated, standards based and straight forward aspect of construction and even that varies a great deal based on the electrician and equipment.
A rigorous standards based construction industry would be amazing. We could design electrical systems that could be installed by a novice with almost no risk of danger or failure. Homeowners could change luminares just plugging them in and attaching them to an electric box toolesly. We could have plug and play water appliances.
Damn it would be magical but again I'm fairly certain that's just not going to happen.
Edit: Above I indicated that the construction industry doesn't operate on "rigorous standards". That's not really true. There are actually very good science based standards for most construction tasks. It's more of a problem that the industry doesn't really focus on making future work on a structure low cost. And it makes very little effort to increase accessibility by creating more consumer facing equipment and tools.