Why is there a Designated Hitter the American league?

there is a designated hitter in the American league because the pitchers don't bat so they take there spots