I don't know if they were actually mean, or just trained to be noisy and act like they were. Either way, I know they'd raise holy hell at the window whenever I walked past it. They might've been thinking "hey Dad, it's so fun to bark at people! Look at how big I'm smiling!" for all I know.
Or more likely because very young dogs would grow some basic traits of character while influenced by the behavior that their parents exhibit in front of them.
Puppies are supposed to be separated from their parents no earlier than about 6-8 weeks old. Critical socialization time is the first 3 months of their life. (Or so. These numbers vary by region and amount of caring; I'd rather have the puppies spend more time with the mom than less.)
Off topic question... Do golden retrievers have a mean side to them? I’ve always liked them and I dont like scary dogs in general