Question: why does 1 byte has 8 bits?
Answer: These days, a byte is 8 bits because we say it is. Why 8? Because computers are binary machines and powers of two are handy. A byte is enough to store a single ASCII character plus a “parity bit” which was important back in the dark ages of teletypes, paper tape and so forth.