After two decades of economic development, there are a lot more strangers in China's cities. People move in and out of neighborhoods constantly today. General sense of personal safety has declined, particularly in major transportation hubs like Shanghai and Beijing. If I were a parent, I wouldn't want my kid to give free hugs to utter strangers on a busy shopping street either.
Quite reasonable to me, too.