ERC-4337 works by executing the 'flow' of a transaction, such as the validation, execution, and post-execution cleanup, through a so-called EntryPoint smart contract, as opposed to through native, off-chain protocol code, which is the case with EOA accounts.