When you move your Documents into iCloud (part of the Store in iCloud component) and your hard drive gets low on storage, only recently opened files are kept on your Mac.
This is part of Apple's Optimized Storage service. If you check your system storage graph in macOS, you'll probably discover a category called Purgeable.