Optimal couplings are totally positive and more