It’s quite surprising, but I expect phones do a lot of snapping and smoothing on the gps data. I’d never get anything this smooth or precise with a top of the range Garmin watch for example.
Author here. Actually, the raw data looks quite different. Snapping it to roads is what I actually wanted to do. Check out the first part for more: https://blog.dend.ro/map-matching-osrm/.