Why did Cain get angry?

Because God did not accept his offering, but the real fault was Cain's unbelief and disobedience.

Watch the Teaching: Why Was Cain's Offering Rejected but Abel's Accepted?