A private session normally clears its local browsing history and temporary site data when you close its windows.
Example
On a shared laptop you open private browsing and download a document.
Why it’s dangerous
Closing the window can clear local history while leaving the downloaded file and the site’s own records.
What to do
Sign out and close all private windows. On a shared device, check downloads and remove any private files you saved if it is appropriate to do so.
How to avoid it
Use private browsing for history on that device. For sensitive accounts, use your own device and check where files are saved before downloading.