In order to understand why OneDrive is temporarily storing your files in a local folder, here are some points to consider:
Check the OneDrive settings and check the box next to:
Save space and download files as you use them
Attempt to open the relevant file in order to trigger OneDrive's synchronization process
Make sure that your internet connection is steady and stable
Check to see if your local storage disk is full