The first Shoukage created this and sealed it here. It is a prison for criminals that is extremely strong, and of course uses chakra bands to restrain their chakra.
A research facility was built into a tree so tests and studies may be performed. This is actually more like a library since it is open to the entire village.