Mac adware cleaner is one of such programs. Such programs unnecessary occupy space on your hard drive and sometimes when they get corrupted they start showing you some error messages as they are unwanted programs you have nothing to do with these error messages, but they keep annoying you. These programs are sometimes legal but then too they are not required for your mac.
Like windows you can also find potentially unwanted programs for MACs.