Satoshi did not intend for output scripts to be able to examine the entire transaction. They figured out it was possible years later using an unintuitive hack. Bitcoin is competitive with stateful architectures by accident!