Minecraft uses Aquifers to determine where to place liquids and air. Without aquifers all empty space below the sea-level would be filled with water. Aquifers thus allow caves to be dry.
The global fluid picker is used when aquifers are disabled and in some cases with aquifers enabled.
The global fluid picker is quite simple:
- air above the sea-level