In photosynthesis, glucose is produced in plants. Glucose is immediately soluble and canot get stored but starch is insoluble. Thus it is converted into starch so that it cannot escape from the cells. Also cells can not use starch directly making it more stable compound for storage. Later the stored starch is converted into glucose by the cells to release energy by respiration.