"I know Hindi because I am from India."
Translation:मुझे हिंदी आती है क्योंकि मैं भारत से हूँ।
मुझे = to me. In Hindi, knowledge of something comes 'to you'.
मैं हिंदी बोलता हूँ = I speak Hindi.
मुझे हिंदी आती है = Hindi comes to me.
in this case, the gender follows the word "Hindi" (female) and not the person who knows it (male or female). look at "zeebo7" right here for the explanation for this form of sentence.