Why don’t the layers diffuse onto eachother?
They do, you just didn't wait long enough. If the densities are different enough, sugar-water solutions can stay separated for weeks or even years. Given enough time though, they would eventually form a uniform solution.