Android may block APK files until you allow installs from the browser or file manager that opened the file. This setting should be enabled only when you understand which APK you are installing and why.
After installation, you can turn the permission off again. Always review requested permissions and avoid files that ask for access unrelated to the expected game experience.