The movie does not explain it explicitly but they were different castes. Think of it like a white and black village in 18th century USA. These movies from directors like Vettrimaran, Mari Selvaraj, Pa Ranjith focus on real social issues bringing stories from these places mainstream to create awareness.