Question: a man has to do what he has to do?
Answer: a man's got to do what a man's got to do. A man must do what he feels needs to be done, even if it is dangerous or undesirable. Sometimes said ironically. It might be dangerous delivering water to the refugees, but a man's got to do what a man's got to do.