Maybe I won't get an answer, but I need help

I need some advice.. So I just recently got back with my boyfriend who I dated for six year ,but we broke it off last year because of distance. Well anyways it hasn't been a month yet since we got together and well everything has been great ,like we never broke up or anything... So today he told me that he got a girl pregnant, but he didn't know until yesterday because she called and told him she was two months pregnant and lost the baby.. He told me because he didn't want me to find out by someone else.. And I mean I can't get mad because we weren't together at that time, but I still feel hurt and I don't know how I'm supposed to feel about this..