he cares about her a lot so he was happy when she cried
crying sometimes means happy rather than upset
friends always care about each other and share their happiness and upset together
you would be upset rather than happy when someone you care about is crying