You’re feeling the email heuristic protection of avast!
Thorough check of attachments: if the attachment’s name has an executable extension (EXE, COM, BAT etc.), a warning will be displayed.