Some context to note: looking at the Reddit post and the later update (both on r/AITAH, with the question being "AITA for leaving my girlfriend after she got a dog?"), it turns out the girlfriend not only knew of his phobia but why he had it. As explained here:
I was attacked by a dog when I was a kid and almost died from it. I was hospitalized for about a month, and it took months to be able to walk normally.
Absolutely understandable. Apparently, though, the girlfriend thought otherwise. He later broke up with her, and it turns out she was a bigger b*tch than the dog she'd surprised him with (and couldn't take care of on her own).
As for hornybelinder's comment, I'll note that it's in response to the first post, so it's entirely possible they didn't have any of the above info at the time. Of course, the lack of said info doesn't justify or excuse what's basically victim-blaming.