What is the purpose of sugar in a tootsie pop?

To give the Tootsie Pop flavor.