I stock food and follow this procedure, but can see that these are not only the same family - the gourd family, but also the same species.
Both have a hard outer shell. Why does one ( Zucchini ) require refrigeration but not the others?
I would assume the answer holds true for cucumbers as well.