Because of unbelief and lack of faith, as Hebrews 3 says.
Watch the Teaching: Why Was Cain's Offering Rejected but Abel's Accepted?