I can't say why it happens, but on occasion it happens to me too. I usually either relaunch Finder or log out. The mother of all solutions is to reboot.
You can relaunch Finder by holding down Option and then right-click on the Finder icon in the Dock.