Rabbits are actually quite smart. The reason that your pets is friendly toward you is because your rabbit recognizes you. And it does not recognize "new" people.
Just like a kid, they have to learn to trust the new people that they meet.
Did you know that you can litter box train or paper train your rabbit as well? Oh yea, they are smart.