someone tried to do a second layer with channels like what lightning does. it didn't really get anywhere. then a sidechain was made and it's still really popular but people acknowledge that sidechains are not as secure. now there are optimistic rollups, but they're still not perfect and have some limitations. rollups secured by zero knowledge proofs are better. until just recently nobody had a working zero knowledge rollup that could do smart contracts.