Currently if you open a project that needs a Unity version that is not installed, you get a prompt asking which of the installed versions you want to use to open the project.
It would be great if UnityHub would prompt if you want to install the appropriate Unity version for the project, and if chosen Yes it would install that version.