Harry told him. Harry simultaneously felt the burden of his secret lift and the weight of what this would mean for Severus collapsed in on him. Severus certainly would be able to help and, at the same time, he was sure to feel betrayed that Harry was only telling him now.