Hi Priya
The enrolling in a course with no role is usually used when you don't want a user to participate in the course but you don't want to unenrol them and loose their course/activity progress. If they are activated again in the course with the learner role they can retain their progress.
regards