What happens to members accounts

There is no concept of “community category” in Discourse. Rather, Discourse sites have categories with topics and replies within each category. You can limit access to categories by group. If someone leaves or is removed from a group that has access to a category, they lose access to the category. But their contributions to the category remain in place, and nothing happens to their user account.