Initial voltages of capacitors using mesh currents analysis
There isn't a "why".  To start analyzing the circuit at any point in time, anything with "stored" state has to be known.  In this case these are the current thru the inductor, the voltage across the capacitor, and the phase of the sine voltage source.

10 V is something they simply picked.  It's a starting state they want you to analyze the circuit from.