The Romans knew the legal ideas of the ancient Greeks and the fact that they were using a form of democracy at the time. While the Romans didn't exactly emulate their ideas, they did update them and suited them so that it would fit the Roman environment.