why do we have to round the empirical to a whole number?

because in molecules, the atoms are present in whole numbers. There is no such thing as 2.1 atoms in a molecule.