How is a eye doctor and a doctor different?

The eye doctor checks to see your eyes but a regular doctor doesn't.

Moreover, an eye doctor specializes in eye problems. They can do eye surgery but a regular doctor doesn't.