Each numeric base has its pros and cons.
Hexadecimal and octal bases are used as 16 and 8 are 24 and 23.
In computers numbers are stored as bit sequences so with base 2.
Having those bases makes things easier than the decimal base
Because its practical. E.g. we still use the Babylonians sexagesimal to do this day (base 60) for handling time. Octal is practical because when displaying such numbers you only need digits. Checkout wikipedia for more info.