Why do penguins spend so much of their lives in the ocean?

They spend so musch of their lives in the ocean so they can hunt for food so they can survive.