 Nietzsche doesn’t make that claim about ethics (how one should conduct one’s life in relation to others) but specifically and clearly about “morality of customs,” which is social prejudice and tribalistic coercive to guarantee conformity. He has historically-contingent targets.