Gmail blocks attachments with certain file extensions for security reasons. Files with the “.exe” extension, which are executable files, are often blocked because they may contain harmful malware or viruses. To ensure safety, Gmail restricts such attachments, whereas image and document files like .jpg and .doc are allowed.