Please suggest what food has carbs and how come people go on a carb diet?

Almost everything. Many different foods contain carbs, like potatoes, breads, pasta. People go on a low carb diet in order to lose weight since carbohydrates have lots of calories.