If a user has purchased a course and that course is provided in a membership that they subsequently join they have duplicate enrolments in that course as per the pic below. The duplicates actually appear on their dashboard and ours as separate enrolments.