The difference is that those are static formats that don't run any code (at least if you believe in the difference between code and date).
There are quite some different gif and jpg parsers out there, but the number of usefull Flash-Players is rather limited (1 comes to my mind).