In English, we say He likes me, but I like him. He becomes him because of the role it plays. German does the same thing with words like ein and mein!
When something is on the receiving end of an action — being loved, being seen, etc. — the word is put in the accusative case, which makes certain words change form!
In the accusative, only masculine words change form. Others stay the same!