Why is there a residency requirement to become President?

A. so no young people will be President.
 B.to ensure someone is mature enough.
C. to prevent non-citizens from being President.
 D.so a person will be familiar with American issues​