A child may be jealous of another child's toy, and want it for themselves.
A partner may be jealous of their partner's friends or other sexual partners - they want to monopolize their sexuality, and therefore their reproduction - to ensure that they only have offspring of theirs, and not someone else's.
See