Because an antivirus software needs to be:
- tied up in the operating system at very 'low level'
- very fast
- extremely reliable in all situations
as a personal opinion I'd say C++.
But before you jump into the coding have a look at the overall requirements http://en.wikipedia.org/wiki/Antivirus_software
] and some example http://sourceforge.net/projects/clamwin/