Cats value their privacy and need their alone time. So, it is not uncommon cat behaviour to try and bite humans after petting. It is a gesture that your feline has reached its threshold of socialising and interaction, and would like to be left alone.