I can provide some general insights.
In most workplaces, it is considered polite and courteous to greet colleagues with a simple "hello" or similar greeting before starting a conversation. This common practice helps set a friendly and respectful tone for the interaction.
If your co-worker scolded you for not saying "hello," they might have felt that you were being impolite or dismissive in some way. They might have been trying to express their feelings about the situation or were simply requesting a more friendly approach to communication.
It's essential to consider the dynamics of your workplace, the relationship with your co-worker, and the overall context of the situation. If this was a one-time occurrence, it could be a minor issue that can easily be resolved by acknowledging their concern and adjusting your communication style in the future.
It might be helpful to have an open and respectful conversation with your co-worker to understand their perspective better and find a resolution if you feel comfortable doing so. Remember that maintaining a positive and respectful atmosphere at work is beneficial for everyone.