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.