Photodiode amplifier circuits - why use an op amp instead of just a resistor?
For linearity and speed
To load the photodiode less
To provide a buffered output

The op-amp forces the voltage across the photodiode to be constant which means there is no charging/discharging of the capacitance which speeds up the response.
Since the voltage across the photodiode is being held constant, the only signal of value from it is the current which treats the photodiode as a current source, where photodiodes are most linear.
It's also nice for your circuit have a low-impedance output so minimal signal voltage is lost when driving a load. That's what a buffer does, among other things.
Using just a enormous resistor in an attempt to get maximum output signal treats the photodiode as a voltage source which reduces linearity, introduces a high RC time constant thus reducing speed, and introduces an enormous output impedance making it difficult to accurately drive other circuits.