That's how it is in the U.S. (at least in California). When you sell a car you have to write down the odometer reading on the paperwork and indicate whether or not it is accurate to the best of your knowledge. But actually changing the reading is not illegal. It makes sense: the reading could be off due to mechanical failure.