It's not the point, but it doesn't hurt that, at least on macOS the 'real native' APIs are... terrible! SwiftUI only just got rounded borders this year https://stackoverflow.com/questions/71744888/swiftui-view-wi.... People here complain about CSS, but that's been a platform feature since like 2003.
On Windows the UI toolkit story is just as much of a pain, with microsoft reinventing the toolkit every other year, and it still lacks basic layout features solved in CSS.