I think there are is a pragmatic basis for many moral tenets, but no pure logical reason. I don't think morals function like mathematics. But ultimately is this a problem?
They allow large groups of people to function together. Their basis - whether pragmatic or metaphysical - doesn't really have much bearing on this efficacy.