Think of life as a mirror.
What you like in others is what you secretly admire in yourself. What you dislike in others is what you privately despise in your own being. You read your own emotions in the faces of friends, you see your own motivations in the actions of others.
You can call this projection, you can put it down to fallacies in the thinking brain, or you can use it to enlighten yourself.