I can see how one’s tendency to preach being associated with their ego

I would also make a distinction between kids’ ‘teaching’ behaviors you describe and the one in Mencius’s quote

A slightly more charitable interpretation might be: sharing useful information creates the possibility of reciprocity.