Maybe he can remember how to, maybe he can't. But maybe he also doesn't have time to source crude oil and to build the apparatus before Monday morning.
Given the man's extensive knowledge, it would be hard to imagine that he couldn't make gasoline. He made a giant refrigerator. The latter is a better explanation, though the movie was a bit unclear about that as well.
There was an interesting fan fic I once read that covered what happened to the Marty that grew up in the better timeline. We only saw him briefly. Clearly circumstances led him to Lone Pine Mall in a similar way that Twin Pines Mall Marty was led there. Probably Doc knew and arranged everything.
But in that story, instead of creating the better timeline, Marty went back in time and in 1955, created the timeline with Twin Pines Mall, thus making a circle.