I think you have got that backwards.
A digital signal is inherently lossy as it takes only finite number of values because digital is discrete (0 and 1), whereas analog is continuous and in theory it can encode an infinite number of values, subject to your codec apparatuses limits.