The reason for this might be that the course organizers of these two courses prioritized you and your colleague in the opposite way. Since also the course organizers' preferences are taken into account for the matching, such situations may occur.
If you still think something went wrong with the assignment, please contact This email address is being protected from spambots. You need JavaScript enabled to view it.! So far, we could explain all odd assignments looking at the data.