The reason computers use 0s and 1s, known as binary, is down to the electronic nature of the devices
As with all electronics, they can either be on or off, which corresponds to 1s and 0s
These binary digits are used to code computers to perform tasks
It is possible to do this in other ways, but this would involve translating the language into binary code anyway
Initially, computer programs were written in binary, but it is inefficient and has since been replaced by high-level programming languages that are easier for humans to understand and write, and these are then translated into binary code for the computer to understand