The problem with being married and having married friends

I am having the hardest time lately. I love my husband he's thoughtful, helpful, and an amazing father. So it confuses me why I am so attracted to my friends husband. It makes it hard to hang out with them. I dream about him even. It makes it so hard.