The phrase brand spanking new means to be entirely new or recently created, and was first recorded in 1860. It evolved from the compound word brand-new and the phrase spick-and-span. Also, spanking, while the main definition is to hit someone on the butt, can also mean to move quickly. So one might say that a brand spanking new object was created quickly or appeared very fast.