in what country are you referring?
The Coupons came out in ‘40 for sugar and butter along with a free pint of milk for every child under 5 (that’s where set-aside jars of jam came in - sugar). The DigForVictory program of ‘41 mandated every adult have an allotment planted with veggies. Magazines ran articles on preserving food and making coats from drapes (heavy fabric was available but extra ration points were needed to purchase it). All manner of farmyard animals were raised in back yards - in London. There were programs to send children to the countryside, but it wasn’t because of lack of food but because of the bombings. Shops stayed open because being Brits, they would never surrender to bombs. Grocers drove to the country to buy produce and meat to bring back to their corner shops. There was no real need for ‘hoarding’, and I’ve never heard of anyone shot in London for failing to give up their baking soda, nor did the government confiscate the produce of the Victory Gardens, although they may have purchased a bit. The main “food” arrests were for improper use of rations. And that usually ended in a large fine or points deducted from your rations, along with a stern lecture from the magistrate about the honor and dignity of an Englishman.
These were privately bought animals who were raised by private individuals and the government took half.
Don't confuse what happened in the US with what happened in the UK.
The government told you what you could grow, how much you had to grow, what you could keep for personal use and what you had to sell and at what price.
There is a pretty good documentary called Wartime Farm that shows the iron grip the government had on the food supply.
Because it was sold to the people as "equality" they decided to continue it after the war and rationing ended only in 1956.
Some government controls such as what kind of cheeses you could make did not end until the 1990s.
Ooh, can you imagine today’s home owner associations allowing for gardens, farm animals or even allowing white drapes to be taken down? No way. Not even in an emergency situation.