I need advice...

Ive been dating a guy i met on facebook we kept in contact for a long time before we decided to actually meet up and hang out and this is the second year of us being together he decided to let me in on a lot of the things in his past he's had trouble talking about in the beginning.. he told me that he had a child in school and his mother told him to stay away from the child and to sign over the rights and he listened because he was afraid of being kicked out and homeless..i was infuriated! How could somebody just sign over rights to they're own flesh and blood..i didn't tell him this of course but I feel that he wasn't really that young..that would've been a motivation for him to grind and go get a job to support his child!do whatever it takes..i really didn't know what to say to him..should I have comforted him? Or yelled? I have never been in a situation like this i don't know how to deal with my feelings about it..im mad and I'm sad because the child went into foster care..theres no telling what the child had to endure..my heart hurts just thinking about it...should I put my feelings to the side and comfort this man? Even though I am mad.. I don't know what to do...