Why is it "Tamten" and not "Tamta", if mężczyzna is female word?
It is NOT a female word. It is one of (rare) male words with female inflection. Another such word is "tata" (dad). So, they inflect like female nouns, but get all the male "additions" - adjectives, pronouns, etc.
MAN is not a female word.