Answer:
Many poisonous mushrooms have bright colors that serve as the warning signal to animals that the mushroom is poisonous and by eating it they can die.
Mushroom is a fungus and most of its part is consists of underground mycelium. The part of the mushroom which is above the ground is the fruiting body of mushroom and is umbrella-like. It is called cap in which gills underside of the cap. These gills contain spores that are disperse and produce more mushrooms.
Therefore as the cap is fruiting body and contains spore so to protect the spores mushroom need to deter predators.
True cause some might cause death and some can not.
Theory can be changed based on new research but law is backed up with immense info and is has not been broken once