One of the best inspirations RPGs naturally absorbed from D&D was a class system. JRPGs were also inspired by this feature, and it didn't take long for several games to create their own creative take ...
One of the reasons that open world games have become so popular over time is the freedom they give to players, so it may seem somewhat counter-intuitive to then limit players with a restrictive class ...