My rats would never bite you. :)
They usually bite if you startle or hurt them, are you sure you weren't doing either of that? Another thing is that your friend's rats may not be used to being handled, perhaps he doesn't pay much attention to them or they don't like being handled. If you had...