Bock beer gets a lot of its malty flavor from compounds called melanoidins. These are formed when sugars from the malt are heated and browning or Maillard reactions take place. Traditional German bock brewers use a mash technique called decoction mashing to encourage the formation of melanoidins.
From: 365 Bottles of Beer for the Year