Some say that two different Android smartphones with the same sensor have different picture quality because of the software. What do they mean?

The software, in this case, is it a camera app or something low-level, OS-specific, drivers, etc?

I totally understand that the camera is great in a smartphone because of the lens, sensor, pixel size, OS, and software. So what is software in that case?