Why would a car stall in drive but not in reverse?

Because reverse is a lower ratio gear than drive and puts less load on the engine.