When computers were first developed, it was easier to work around code that only consisted of 0s and 1s. The architecture of their processors and logic gates and switches makes it so that even the most complicated data is still broken down into binary. You can also read a more detailed explanation of why computers use binary code.