You have to understand that these rock walls are built because of powerful construction interests in the area. The workers are paid typical India wages. Hardly seems worthwile in food when you get displaced by beach retreat.
Roughly 2/3rds of Kerala's coast is lined with rock walls. These coastal protection structures actually accelerate coastal erosion and restrict access to the ocean. Increasing environmental burdens and continued development seriously threaten valuable coastal resources.