If everything on the Ethereum blockchain is public, then why is it apparently so useful for managing identity?

From what I gather this has something to do with IPFS, but how does it all work? How do smart contracts enable effective identity management?