That's true, but they may also be praising "smartness" before the child knows what that is either. However, given how schools work, it's pretty unlikely that someone will realize what it means to be considered smart after they've realized the value of hard work.