This is exactly it, in my opinion. It's much easier to catch cheating by running homework code through something like MOSS than relying on a human TA to catch that 2 handwritten math assignments are exactly alike. I TAed both CS and Math classes at a large state school and once caught ~20% of a 50 person math class on a homework assignment because they had all copied a mis-labeled problem from the solutions manual. It's probable that they had all been cheating up to that point but I couldn't tell. It turns out, the Math department as a policy doesn't try to do anything about cheating and just encourages lecturers to base the majority of the final grade on exams. I can't say this works much better because I've sat next to a student 2 separate times during exams who obviously had their phone out and was reading from it. The rate of cheating is probably lower in exams but lecturers should be more proactive about it.