There is no pleasure in having nothing to do; the fun is having lots to do and not doing it.
The joke here is that idleness only feels delicious when it is slightly stolen. An empty calendar is just empty, and the hours drift by without any flavor. A free afternoon becomes a treat when it could have gone to a report, a tax form or a overflowing closet, and you choose, for now, to ignore all of it. The quote is a wry observation about contrast: we enjoy rest against a backdrop of obligation, the way a warm room feels best when it's cold outside.
It sits comfortably in the old tradition of humorous essays in praise of idleness, which suggest that doing nothing is an art that needs a little pressure to give it savor. It is also a gentle wink at procrastination. Note that the attribution to John W. Raper is hard to verify, so it is best treated as a popular saying.
In practice, you might notice this on a Saturday when your to-do list is long. Rather than dissolving into guilt, you could pick one task that truly can wait, set it aside on purpose, and enjoy the walk or the book without apology. Choosing the pause, rather than merely falling into it, is what makes it feel like fun.