@drizzy maybe so, but it's a very shallow understanding of freedom. Perhaps the most celebrated freedom is the freedom of speech -- this is as a guarantee of rights and an obligation for the government to behave in a way which upholds that right. This "restricts" the behavior of the government such that they cannot, for example, arrest someone for speaking out against a political leader (at least in theory...).
@drizzy in the US, for example, freedom is collectively understood to be enshrined in the constitution and its bill of rights, which, collectively, provide a guarantee of rights by constraining the actions of the government.