Waves are due mainly to the effect of wind blowing over the surface of the water. A large body of water, such as an ocean, has a huge surface area for the wind to act on and, consequently, large waves can result. The depth of water is an issue only when deep water waves move towards the shore. Tsunami waves have a very small amplitude when travelling over deep water but "bunch up" and get bigger when they reach shallow water.
Wave action can also result from tidal movement and tectonic movement on the sea floor (tsunami)