Brains are resource hungry, especially oxygen hungry. Earth's air is orders of magnitude richer in oxygen molecules than its water. This likely made it easier for intelligence to develop on land. It's worth noting that the smartest aquatic animals are air breathing mammals that spent much of their evolutionary history on land before returning to water.
When did octopuses start breathing air?