Their success may trigger an unmet desire of your own—for recognition, independence, security, freedom, companionship, creativity or something else. Understanding what the achievement represents to you can be more useful than simply labeling the feeling as jealousy.
https://www.wisdom.vedaspark.com/blogs/why-do-i-keep-comparing-my-life-with-everyone-elses