There are two competing definitions for GB. One uses 1024 bytes per kilobyte, 1024 kilobytes per megabyte, and so on. The other one uses 1000 all the way through. These days you're supposed to use "GiB" for the first definition, but almost nobody does that.
Historically most software has used the 1024 based definition, and hard drive (and ssd) manufacturers prefer the 1000 based one, because that gives bigger numbers which are good for marketing.