and why is this not the default way to install software but depending on Apple or Google store, where are full of restrictions and rules?!
Because people like one click installs, instead of having to figure out the commands to run on the command line.