There are certain types of files that cannot be received in Outlook as attachments, eg .exe files, since they can infect the computer with viruses.
If you want to send one of these file types to a recipient, Microsoft recommends using OneDrive and sending the recipient a link to the file instead.