I2P has been around since 2003, which makes it almost as old as Tor, though it's never had anything like the same user numbers. Its focus is different. Tor is mainly a way to reach the regular internet anonymously, with onion services as a feature. I2P is mainly an internal network: websites (called eepsites, with .i2p addresses), torrents, email and chat that live entirely inside it.
Technically, every I2P user is also a router that carries traffic for others. Connections use one-way tunnels, so requests and responses take different paths, and messages are bundled using garlic routing. Peer information comes from a distributed database rather than central directory authorities.
There are two main implementations: the original Java router and i2pd, written in C++, which is lighter. Both need some time after first start to integrate with the network, and the first hour can feel painfully slow.
I2P has outproxies to the clearnet, but there are few of them and they aren't the point of the network. For file sharing inside a closed network, it's arguably better suited than Tor. The comparison article on I2P vs Tor goes through when each one makes sense.