As humans are made with emotions, as when he feels something bad or gets hurt by someone at the moment in most cases, being emotional he chooses the wrong person to share the incident, I mean he chooses the wrong one as a trusted being. When everything goes normal, he feels that he has done a big mistake to trust the person. The damage has been done already, he can't do anything without regretting at the moment.
Very well said.