I was watching some old western from the 1950s in which the cavalry attack Indians. In the melee, the Springfield rifle bends double, then springs back straight. It was rubber.
Wooden and rubber guns were much cheaper and easier to maintain than the real ones. They also can’t fire, which is admirable on a set with a large group of actors and crew.