Online courses may not actively discourage collaboration, but they certainly do not force it in the same way that is possible in a traditional classroom. Don't get me wrong, I am a huge supporter of online courses. But a teacher staring you down, asking you a question, or encouraging you to work on a project in a small group is much more attention-grabbing than many online teaching mechanisms available.