Do German nouns have gender identity issues?

Sometimes whilst teaching German, I am being asked why German nouns change genders. It is ‘die Tür’, a feminine noun, and suddenly somewhere mid sentence it is ‘der Tür’. ‘Der’ being the definite article for masculine nouns. Do German nouns have gender identity issues? A justifiable question from an unsuspecting student or a precocious question […]