Strange set of allowed attachments

Why can't we attach .zip .txt or even .groovy files to posts? I was just trying to share some code with someone in a private message in a way that wouldn't get it html-corrupted.

Just cut and paste text, then select it, and mark it as pre-formated text using this button </> in the editor.