It was purportedly (and probably in actuality) intended as a survival aid to be used after landings and before recovery in the Siberian wilderness, although allegedly was intended as a defensive weapon against in-space attacks by the US space program.
You are half right. The gun definitely is for bears, but, and get this, space bears
Normal or cocaine…space…bears?
Miniature giant space bears.