Not sure about the 172 specifically but generally using take-off flap reduces ground roll but increases take-off distance i.e. reduces the rate of climb. They probably recommend flap for a short field take off for this reason, but if don't have a short field then you generally want best rate of climb after takeoff i.e. no flap.
Cheers DB6