More of a design pattern than use case.
The best use case of nested function is a decorator. Other use cases can include limiting scope inside a function or splitting a function into sub inner functions if statements are repeated and recursion is not possible.