Because when meat browns, a chemical reaction takes place that creates a lot of flavor (there's a science to this, called the Malliard reaction, I think). Smashing a burger, increases the surface area of the burger that comes into contact with the heat source, thus more browning, thus more flavor.