After pacman -S nextcloud you don’t have a functioning Nextcloud. You’re still missing the web server, php, caching, etc. And all of it needs to be configured manually to work with Nextcloud.
After installing the Snap on Ubuntu or the Slackbuild on Slackware, you do have a functioning Nextcloud that lets you connect to it via the web frontend and finish the setup.
After pacman -S nextcloud you don’t have a functioning Nextcloud. You’re still missing the web server, php, caching, etc. And all of it needs to be configured manually to work with Nextcloud.
After installing the Snap on Ubuntu or the Slackbuild on Slackware, you do have a functioning Nextcloud that lets you connect to it via the web frontend and finish the setup.