Creating a closure is nothing more than accessing a variable outside of a function's scope. Please note that a function inside a function isn't a closure. Closures are always use when need to access the variables outside the function scope.
Closures mechanism is used to enable the data privacy.
Why is closures important?