Onions and garlic contain a chemical substance that is toxic to cats, namely n-propyl disulfide. After eating onions by mistake, the hemoglobin in the body will dissolve, which will cause acute hemolytic anemia in cats.
Some cats urinate blood, so onions and garlic are very dangerous for cats!