It's exactly as rational as people hoarding toilet paper at the beginning of Covid.
Just because some behavior made sense in a prehistoric society doesn't mean it does in a modern one.