Question: why bcd code was extended to ebcdic?
Answer: EBCDIC (Extended Binary Coded Decimal Interchange Code) was a further development of older codes like BCDIC, BCD and back to Hollerith. As designed now, it was an 8-bit code, because the new machines used that unit in the composition of 32-bit machine words.