Federalism is a form of government where a certain amount of power is held by the central government while other powers are given to the governments of various states.
In slavery, the role is defined and the same happens in case of federalism which makes these two similar to each other.