Variables = 0 are done automatically in gcc, why do we do it

Why do we have to declare variables equal to 0 in Codechef when they are automatically declared to 0, if we don’t do it the code will give wrong output

Zero is the standard template, but you can replace other numbers