WTH do I need to use YAML to change the default port

For simplicity I have Home Assistant responding to port 80 instead of the default 8123. However the only way to do this is via setting server_port in the configuration.yaml file. WTH isn’t this a setting in the networking section?