Why do we build dams?

why do we build dams

Why do we build dams is one question that has many answers and multiple variables.