There is a setting that automatically unenrolls users site wide if they haven't been active in a course. That could be causing the problem here.
Do a search for "Unenrol inactive after" in the admin search box and see if it's set to something other than never.