The ocean has a calming effect on your mind, allowing it to go into a meditative state. Since the sound and sight of the ocean is easy for the brain to process, it can create a soft focus, just like when you are focused on your breath in yoga or in a mindfulness practice.