Sweet corn contains a lot of sugar, which can caramelize during the canning process. The brown color is typically from the sugar in the sweet corn reacting to the heat of canning. It is perfectly safe to eat!