Your friend must have realized that there was a possibility of his future child (or multiple future children) seeking him out one day. You don't donate to a sperm bank if you NEVER want to have a kid. Did he need $40 that badly?
Your friend was not very wise here.