Josh Hader served up three home runs in the ninth inning, including a walk-off grand slam, as the Brewers suffered an 8-5 loss to the Giants.