They Don't
Dolphins and sharks do not look similar. Dolphins are mammals with smooth skin and horizontal tail fins, while sharks are fish with rough skin and vertical tail fins. Any similarity is due to convergent evolution for swimming, not close relation.