On the contrary. Students who never come to office hours, who never ask questions in class, may sometimes be regarded as if they understand the material less than students who ask questions and are engaged in the class. Coming to office hours to learn better is considered a plus, not a minus, so is asking intelligent questions in class. Don't you think also professors go to other professors to ask questions about subjects they are learning?