This is a rare phenomenon, it’s called “cross waves”. It comes when two waves coming from different directions meet. Their directions are different because the waves belong to separate climatic systems. They are different from the waves produced by gusts of wind. Cross sea waves can travel on the surface of the water for thousands of miles. The phenomenon of “cross waves” can only be observed from above and is not visible from the beach.
Source: Sara Wiley