Earth and Jupiter closest on June 12

Earth flies between Jupiter and the sun on June 10, 2019. But the giant planet will be closest to us on June 12. Why?