Hope someone can help!

I have been knitting in the round to get the correct gauge and on both swatches I made the same error. How did it happen? And how to avoid?