Why use of frames in websites are considered as evil for SEO?

Why it is always recommended that you should not use frames in your site designing.....Search engines have problems in indexing frames or they don't even index sites using frames.........what is the reason for this?