Jealousy comes from a hollow self-conscience. People often are so insecure about themselves that their behaviour towards other people is guided by their own perceptions about themselves. There is a continuous battle of proving oneself to others that they cannot swallow the fact that other people can be "better" than them. Thus, their hostility towards you indicates they are fooling themselves.