why are there 2 circulatory loops?

One goes to the lungs to get rid of carbon dioxide and get oxygen, and the other spreads oxygen to the body and picks up carbon dioxide.

https://www.google.com/search?client=safari&rls=en&q=circulatory+loops+of+the+heart&ie=UTF-8&oe=UTF-8