This is illegal because that's how you create cartels and monopolies. If all producers of a commodity work together and determine the price, it will be often higher than what it could actually be, so it's illegal because it exploits the people and the market. When companies do this, their owners and CEOS often get arrested.