People often do these things for reasons that are hidden from everyone, and in Japan they also seem to be a cultural legacy. Don't take it personally and don't beat yourself up for 'not spotting the warning signs' or anything like that- obviously he kept things hidden even from his own family, and anyway this may have been a response to something like a sudden romantic disappointment.