Cain ignored God's instructions and brought what he wanted rather than a blood sacrifice; his problem was not listening to God.
Watch the Teaching: Why Was Cain's Offering Rejected but Abel's Accepted?