Well of course we can do the second.
It has happened all the way with the element table in chemistry. Heck we're even manufacturing non-natural matter (as in, probably never generated elsewhere in the universe) to fill the holes that the theory has created.
The Higgs boson also comes to mind.
The ultraviolet example is the opposite: The universe acted in a certain way, so we looked for math to match, which happened to have a strange property to it.
Here first we found the strong property and are looking for the universe to match.
You can do the first, but not the second.