Why do crystals have reproducible external shapes?

The flat surfaces of the crystal have their relative areas in fixed ratios and the angles between the flat faces also have fixed ratios.