How do I achieve UI scaling like that?

There are still cases where you should maintain aspect ratio instead of solely depending on scale.

EXAMPLE: Sizing guis inside of scrolling frames. If you only used scale, when you change the CanvasSize everything would stretched or shrunk on the axis you changes. Aspect ratio solves this.