why do cockatiels hit things with their beaks

why do cockatiels hit things with their beaks