A universal characterization of the unit interval