Why we can't add groups to top menu

That setting is only for topic listings.

You can add a Groups button with something like:

<script>
  Discourse.ExternalNavItem = Discourse.NavItem.extend({
    href : function() {
      return this.get('href');
    }.property('href')
  });

  I18n.translations.en.js.filters.groups = { title: "Groups", help: "Groups Listing" };

  Discourse.NavItem.reopenClass({
    buildList : function(category, args) {
      var list = this._super(category, args);
      if(!category) {
        list.push(Discourse.ExternalNavItem.create({href: '/groups', name: 'groups'}));
      }
      return list;
    }
  });
</script>

On </head> customization.