Historically, Planck derived the black body radiation law and detailed balance according to a classical thermodynamic argument, with a single heuristic step, which was later interpreted as a quantization hypothesis.