Why do people do? "local (something) = (something)"

What does it mean?

Why do we have to do it?

Why can't we just do?

"(something) = (something)"