Cheating

Me and my SO both have got caught "talking" to other people. I did because of lack of attention from him, and this nee guy made me feel pretty and importiant agian. idk why he talked to the other girl but we both get really upset when we learn of the other person. Does this happen in other relationships? We both don't want to leave each other and we love each other just sometimes I guess I get bored.