I was focused initially on the counts of active rules in your two copies of the profile. Now that you’ve drawn my attention to the inactive / overall rule count… it’s difficult for me to believe that both servers are at the same version with the same set of plugins.
But to answer your question, there is no automated way to do the comparison, but it’s not hard to do via the UI. You would go to the rules page in each instance and begin by filtering on the language. Then you can check the repositories in each instance. Do both instances have all the same repositories? With the same rule counts in each?
Are there the same counts for each rule type (Bug, Code Smell &etc)? For each severity?
Once you’ve narrowed down the discrepancy that way
You’ve asked about why there are fewer rules in a Quality Profile you imported into a server than there were in the source server.
Going back to your screenshots in the original post, I see
there are fewer active rules in the target server’s QP
there are more overall rules in the target server
Both of these things point to a different set of rules being available in each server.
We can’t go any further in diagnosing your original question until we figure out the differences in the underlying sets. One way to do that is on the rules page, using the rule counts shown in the facets, as I described earlier.
I suspect this comes down to the plugins installed - or not - on both servers. But you’ll have to do that sleuthing to find out.