Some malware resides in the Master Boot Record (MBR) or creates hidden partitions. Logical formatting often misses these areas. Zero-filling the entire disk ensures all sectors, including the first ones containing the MBR, are wiped clean.