At uni no-one checked or took roll call at lectures. You could just rock up without enrolling/paying and get free learning. Of course you can't do the exam and get the degree, but that's not the goal here.
Is it stealing? The professor would be doing the exact same thing with or without you there. As long as you don't take up a seat in an otherwise full lecture.