You never know when some teaching from a random course could help you later in life - so it may not be that useless!
I took some seemingly useful courses only to find out that the professors were not really qualified to teach them. Thus, I got the credits, but learned virtually nothing, rendering them basically useless.
Edit for grammer - apparently my education wasn't that great