Why are two affirmative premises invalid in the second figure?

The Second Figure: Conditions of Validity and Four Productive Moods