Doesn’t seem that big, if you open a RAR from a shaddy source, I would expect to get malwares anyway.
A similar thing is with ldd (I don't know if this still works and can't search or check right now): https://news.ycombinator.com/item?id=902958
7-Zip infers filetype (by necessity in many cases), so any file that you open with 7-zip can trigger the problem.
People definitely would open: .zip, .7z, .gz, .xz, .iso, ...
So, your antivirus can scan your .png files, try to uncompress them as rar (based on their content) and execute malicious code without you having even the slightest idea of what is happening.