There is nothing wrong with preferring to work than to socialize. Yet your colleagues are objecting to your behaviour. Why? There are a few possibilities. One you have come up with is "They hate me for concentrating on work." Let's try some others:
- they are momentarily irritated with me when I brush off their attempts to chat
- their feelings are hurt when I say I couldn't care less about their weekend plans, or their children, or their dog, or these cute new shoes
- they feel criticized when I tell them we are here to work not to chat
- they are offended when their conversations are called gossip by someone who refuses to join in
I bet you can come up with a few more if you try. See the difference?
Try responding once to chitchat from them. Laugh at the joke, "aw" at the baby or puppy, admire the shoes or the plans. Answer with a single sentence when you are asked these sorts of things. Then get back to work. Smile at them. Indicate that you enjoyed the moment of relaxation with them. You don't need to do 8 hours a day of it, or 10 minutes every hour, but in almost all jobs, a few moments a day of collegiality is actively encouraged. It helps teams pull together and support each other.
Don't tell them you think they spend the whole day gossiping, or that they should work more, or anything else that might be perceived as judgmental. Ask yourself, "how would I act if I liked these people and enjoyed their company?" Then ask yourself what is keeping you from acting like that for a few minutes each day. Consider doing it, but more importantly, learn about yourself and your workplace from your answer to those questions.