That is how iCloud works. By default it keeps a local copy. You can access the local copies from the Finder sidebar in iCloud Drive in the iCloud section.
If you have Optimize storage turned on and are low on space, then there may not always be a local copy. See the following from Add your Desktop and Documents files to iCloud Drive - Apple Support
If you need more space on your device, iCloud Drive can help. On your Mac, choose Apple menu > System Preferences. Click Apple ID, then click iCloud. On macOS Mojave or earlier, choose Apple menu > System Preferences, then click iCloud. Turn on Optimize Mac Storage. Then your Mac keeps all of your recent files on your computer, but keeps your older ones only in iCloud, ready for you to download when you need them again.