If you shake your phone, the built-in motion sensor hardware in your phone might recognize this movement as walking. Pacer, and other movement tracking apps, uses this sensor to count steps. This is not a bug.
We are continuously improving the Pacer app and working to combat such issues.