One is setting the max the battery can supply. The other is setting max the motors can receive. The ESC controls both. My very basic understanding is increasing motor max roughly equates to feeling more power at lower speeds and increasing battery max does the same at higher speeds.
Edit. Read this