Make other people feel stupid to make me look smart

Sometimes I feel like I make other people feel stupid or instead of just saying nothing, I tell them of a mistake they made. Why do I do that and what does that say about me? I’m thinking it says I’m insecure. But mostly it makes me feel like I’m just a bitch. How do I work through this in a model?