it depends on the diet and the person, some diets are for healthier eating, some are for gaining weight if the person is underweight, and others are for losing weight etc
Most people diet when they are unhappy about their weight and body fat and they diet to limit their food intake while excersice helps keep calore intake low.