why do dogs eat cat poop out of the litter box?

my pet is beginning to show some unusual behaviour today. I found him eating cat poop from neighbours litter box.

Why is this strange behaviour guys