God’s jealousy is motivated by His love. We seek after things to quench our thirst that is not the living water, and it angers God to see us drink of things that will never satisfy. God’s jealousy and anger is his perfect love for us.
“but whoever drinks the water I give him will never thirst. Indeed, the water I give him will become in him a spring of water welling up to eternal life.” - John 4:14