This sometimes happens when your computer crashes. Its more likely to happen if you use FAT16/32 filesystems, eg Win95/98/ME.

Solution? Don't use the above operating systems hehe

Win2k and XP can also use FAT16/32 but I believe they default to using NTFS when installed, which is much better. Eg journalling and other major features.