The line is the reason you don’t lose a day now. When you circumnavigate the world westward, the earth has rotated one less time for you than for everyone else, so it appears you have lost a day. By artificially switching the day at the date line you avoid this kind of slippage.