How do you know that मेरा is incorrect - the rest of the words in the sentence are either masculine or have no gender, correct?
There is some objects which are feminine or masculine . All you need to do practice these to get this well.Keep practicing.
Welcome to the world outside English. In many languages, inanimate objects have a gender.