The tradition has its roots in a teaching that when Moshe warned that there would be no manna on Shabbat, some of the nation placed their double portion of manna in the fields to discredit him.