Why keyboard is peripheral device?

A keyboard is a peripheral device as it is connected to the computer system. It is used for type work up to the computer.