Celtic boss Brendan Rodgers says he understands Jurgen Klopp's decision to leave Liverpool at the end of the season.