The first reason is that dolphins have a powerful sonar system, which can interfere with the brains and nervous systems of other marine animals and make sharks lose their combat effectiveness in a short time.
The second reason is that dolphins live in groups, they will organize together to shoot sharks, and the internal organs of sharks will be hurt.
The third reason is that dolphins are very flexible, sensitive and swim faster.