Phones sometimes misjudge how you were holding them, especially when you photograph a sheet of paper lying on a table: the photo comes out on its side. You might also scan a page upside down, or end up with a folder of trip photos where half are straight and half are turned. An upside-down scan is fixed with two 90° turns.
Horizontal flip is mostly for selfies: many front cameras save a mirrored image, so the writing on your T-shirt or the sign over a shop comes out backwards. Flipping the photo makes it readable again. Vertical flip turns the image upside down: it’s needed less often, for example to create a reflection effect in a graphic.
Each image has its own rotate buttons, so you fix only the crooked ones and leave the rest as they are.
If they’re all turned the same way, for example notebook pages photographed in landscape, you rotate them in one go. At the end you download everything in a ZIP archive.
To be honest about it: after rotation, JPG photos are saved again, at high quality. So it isn’t a “lossless” rotation: you usually can’t see the difference, but rotating and saving the same photo many times degrades it a little each time. Better to rotate it once, starting from the original.
The images are processed in your browser and never leave your device: you can check by disconnecting from the internet after opening the page.