A virus scan can only scan for something it knows. If you have something new or esoteric on your device, the scanner may not pick it up.
If you’re not using a reputable antivirus, also consider that the database is wildly out of date at best, or the “antivirus” is malicious on its own.