How can we have groundwater depletion when the Earth is 78% covered with oceans?
How can we still lack groundwater?


That 71% of the Earth's surface is covered by oceans is completely irrelevant to the issue of fresh groundwater depletion. Salty groundwater is useless for drinking or irrigating crops.

The issue at hand is the depletion of those underground reserves of fresh water. This depletion can result from natural or human causes. The Sahara is an example of natural depletion. The Sahara was significantly wetter than it is now several thousands of years ago. Rains over the course of a few thousand years created a number of underground reservoirs of fresh water in the Sahara. Rain stopped falling on the Sahara about 7000 years ago. The few remaining oases in the Sahara are places where groundwater still comes close to the surface as a result of that roughly 3000 year long wet spell.

Humans can also cause groundwater depletion. It takes several centuries for rainfall to percolate down to the water table. The replenishment of aquifers is very slow. This is balanced by a very slow trickle from a natural spring here, another one there. The end result is a more or less steady state where the slow replenishment balances the slow outflow. It's very easy to disrupt that balance. Climate change (both natural and anthropogenic) can change the replenishment rate, while artificial wells can drastically increase the depletion rate.