What are action factories? Where would I use them?

I came across the use of action factories here and I’m wondering where I would use them. I don’t see any documentation on it, but many people seem to know how to use it. I do understand that somehow you it allows you to instantiate custom action classes, but I don’t understand the “why” or the use case behind it.