If they do, it could be because they want to feel more like part of the family, or it's just a particular animal's personality and that animal was matched with the person meant for it.
Attack isn't the only part of dog parks I dislike. I think they are dirty and a pet owner doesn't know if the other dogs are being well taken care of and vetted. My vet agrees and went a step further to say that highway rest stops were one of the worst places for disease.