Although corkscrews, in some form or another had been used as far back as the 17th century and for uncorking many different contents, they were not purpose built. The most common devise that doubled as corkscrews were gun wormes. Gun wormes have a similar shape to the modern corkscrew and were primarily used to clean musket barrels. As we have since learned, guns and uncorked bottles usually don’t mix well.
In all fairness though, wine bottles were not the first bottles to be corked. Until bottle tops and cans became common after WWII, corked containers were commonly used for cosmetics and food, as well as medicine.