I've been using Photoshop Lightroom (not classic) for a bit now. I recently started seeing a folder called "Lightroom CC" and inside of that was a folder called "65ebffebf7444900a1e91165203b9f15" with random saved photos (originals). I dont know where or why this is here. It updates itself somehow. I have never chosen the function to store photos locally.
I did make the mistake of installing Lightroom classic a few weeks ago because I wanted the calibration feature. I synced all my photos to both before seeing the comment by Adobe that it is not a good idea to run both classic and cc at the same time. I uninstalled lightroom classic.
since there sometimes by Lightroom cuts connection with the cloud if left unused. It's also always syncing a ghost photo (I dont see it when clicking on it)
There is nothing to worry about. Lightroom creates and maintains a local catalog, subservient to the master catalog that is held in the cloud, and on Windows it was created automatically on the system drive (in the AppData>Local>Adobe folder) and was called Lightroom CC (as that was the initial name of the application) and obviously that name wasn't changed when the "CC" was dropped from the Adobe suite of applications, so that name still persists today.
In terms of the original files that you see there, you may not be aware that when you edit images in the Lightroom desktop app a copy of the original file that's in the cloud is downloaded and stored temporarily in the designated location (which is inside the Lightroom CC folder if you haven't specified a different location for local copies of originals). The intention is that those local copies will be deleted eventually, but there are some complex rules which determine when that would be. If you are concerned about the amount of disk space being used, either set the location for originals to a different drive (if you have one) or lower the the allowable size of the photo cache (Preferences>Local Storage tab).