By counting slaves, even though they had no political rights, the slaveholding states mostly in the south would receive greater representation in Congress.
Thus, Jefferson and Madison presented themselves as defenders of the common man in opposition to the so-called northern aristocracy, despite the fact that they depended on the support of slaveholding states in the south.