At first glance, they seem too good to be true: free courses—often offered by top universities—that students can complete at their own pace from anywhere with an internet connection? What’s the catch?