It's not just *any* layer of earth; it needs to be permeable (allowing water to flow through it) and porous (having spaces to hold the water).
So, while it's true that an aquifer is a water-bearing layer of the earth, it's important to remember those key characteristics.