It’s mostly for convenience: Texture atlas - Wikipedia
For UI in particular though, the issue is that as separate textures they need to be power of two dimensions, whereas you can drop those UI images into an atlas and they can be whatever dimensions you want because the atlas will be a power of two.