the oscillator for a crystal is built to be as efficient as possible in order to accomplish this its built to work best in only a certain narrow capacitive loading range, The capacitors are used to trim this loading for all different crystal capacitance values.
What it is specifically doing is adjusting the phase shift on the inverter so that it is very close to 180 degrees.
This is a great example of a reply that might be technically correct*, but is
completely and utterly useless to a beginner (we are in the Beginners forum!). The OP made it clear they were trying to understand an analogy.
Also, punctuation helps. Please use it.
*I can't judge it, since I don't understand crystal oscillators, either.