ANSWER
Electromagnetic waves do not require a medium (they can move through space) and ocean waves require a medium.
EXPLANATION
They are two different types of waves. Ocean waves are mechanical waves, which means that they need a medium to move - in this case, water.
On the other hand, electromagnetic waves are another type of wave. They do not need a medium, so they can move across vacuum - like in outer space.