The saying comes from farming communities. There would often be only a short time in which the hay would be ready to cut- reap too soon, and the hay would be too green. Reap too late, and you run the risk of rain ruining it all. Still very good advice.
From agriculture, when farmers gather the long grass growth of summer to dry it to produce hay as winter feed for animals; The best time to cut and dry the hay is during sunny days.
B:" Sure - Might as well make hay while the sun shines, and get her something at cut price!"