A picture is a fixed grid of pixels. Make it bigger in an ordinary image program and each pixel is simply spread over more space, so edges turn soft and fine detail turns into blocks.
An AI image upscaler works differently. It has learned from a great many photos what sharp edges, hair, fabric and foliage look like, and it redraws your image at the larger size with that detail filled in.
The detail is a reconstruction, not something recovered from the original scene. On most photos it is convincing. Small text, a tiny face or a heavily compressed image can come out looking slightly different from the real thing, which is why the page lets you zoom in and compare before you download.