I mean, it's not required per se, it's right there in a repository... the script configures the repository and installs oma afterwards (there are system dependencies).
https://repo.aosc.io/oma/
Out of curiosity, how - by your preference - should this be done so that it's easier for the user?