It’s called POWER. This is how such people make themselves feel significant, in control of others, and that they matter.
There are some people who lack self-belief and self esteem and, like bullies, the only way they can feel good about themselves is to make life harder for others, especially picking on those who might be more vulnerable and lacking in courage or confidence. They are often easy prey to that kind of selfish action.
Some people tend to have a belief that if they are not getting what they want, nobody should get theirs, either, hence why they spend their time making life difficult for others by thwarting their opportunities and success. However, you also have a choice as to whether someone can affect you, or not, because bullies will only prey on those they believe are weak and helpless. Perhaps you need to stand up for yourself and show them that you are not there to be manipulated or be made miserable; that they are not important to your progress in life.
As that great American First Lady, Eleanor Roosevelt, once said: “No one can make us feel inferior without our permission.” Indeed.
So you might need to let go of the victim mode and develop more confidence in yourself to ignore the negative actions of others by surrounding yourself with people who uplift you, instead of dragging you down. You really can tell the quality of your life, and what you desire for yourself, by the friends you keep.