It seems like it should be clear if you read the definitions. Perhaps if you explain why you think it should be 'affect', you can get a better explanation.
Effect is usually a noun and affect is usually a verb.
That's not an explanation. Effect and affect are just different things with different meanings both as nouns and verbs.
Because the noun affect means something entirely different.