Companies wanting to take your course

How do these companies know what courses you are taking? I have companies that send emails to my university email and they know when my exams are being held? How do people get away with this? They are proctored exams?

It is really not clear what you are talking about.