By default, macOS only allows users to install applications from 'verified sources'. In effect, most attempts to install software from the internet or physical media.
Please go to Installation Error on Mac to learn more details about the installation errors.