My character keeps jumping around in NetHack. Why?

Sounds like a case of teleportitis. You can get this effect in a number of ways. If you're not wearing a ring of teleportation, then it's probably because you ate the corpse of a teleporting creature like a leprechaun.