Cats and kittens will often nip when playing or petted - it stimulates them, and some call it a 'love nip'.

Do the bites hurt? Maybe handling her more carefully - a gentle "no" when she bites and stopping the patting or playing for a moment will help train this into her before she gets big adult teeth!