The plant stores the excess glucose that it produces in its storage system (in this case, a potato).
This excess glucose is stored in the form of starch, both being carbohydrates.
Thus, potatoes are a good source of carbohydrates as it contains starch.