Let’s say we want to open a bank account. We need lots of software objects associated with each other. A factory can handle the creation of all these objects associated with the bank account.
What the factory generates is important, but how it happens has no relevance to your domain. But the result of the factories does matter to the domain.