Transaction Input - previous hash size?
It is because in the developer guide they are referring to the outpoint, not the output. The outpoint is a data structure used to refer a particular output, that consists of:

outpoint = txid(32 bytes) + output index (4 bytes)