10 is a newline. vim automatically appends a newline (if the file didn't end in a newline) when you filter it through xxd.
Since you are treating it as a binary file you should tell vim it is a binary file with vim -b
so the newline isn't added automatically.
Take a look at :h binary