It’s likely a cultural thing. I’ve noticed it in urban Canada, myself.
A man smiling at a child who looks at him will get glares or weird looks from the parent. A woman smiling at a child who looks at her will be nothing out of the ordinary. The same man is “allowed” to smile at children if he’s with a woman and/or a kid of his own.