Because they serve different purposes?
Assuming you're talking about wild encounters and not competitive battling, Compoundeyes increases the chances of finding an item on a wild Pokemon from 50%/5%/1% to 60%/20%/5%, but you still need to use something like Thief or Covet to check if the Pokemon is holding an item.
Frisk will tell if you a Pokemon is holding something, so if it isn't, no message will appear at the beginning of the battle & you can just run away.