To the same molecule, I tried plotting the graph with explicit water
molecules. The graph is as expected.
But, when no water molecules are explicitly mentioned, the y-axis displays
erratic values. Larger deviation from the expected values.
this sounds like you are learning first hand the differences between
explicit and implicit solvent simulations. and the implicit solvent in
this case is a particularly simple model to begin with.