Why does a brand new bicycle have shining handlebar and wheel rims? What will happen if these are accidently scratched?

The shining coating is done on the metal by electroplating. When these are accidently scratched then, the metal will be rusted due to presence of air. So, by some metal these are coated so as to avoid rusting of iron mainly used to build the handlebars and wheel rims.