Perhaps it's just the wording, but I really disagree here.
Yes, there's a natural stress process we go through while learning where our boundaries are expanded, but to struggle... it's often a sign of bad teaching.
I say this as a best selling Udemy instructor and having been a university CS tutor. Your job IS to take away the struggle. You do this by being the student, leading them to confusing situations and then overcoming that situation with them in a series of steps that are built up over time, and then having them apply that knowledge to build skill.
The thing is, that teaching a subject well takes a lot of time and effort. There are very few really great teachers out there.