the main purpose for photosynthesis would be to use sunlight energy to make glucose and oxygen. as for cellular respiration, the main purpose is to create carbon dioxide and water, but the most important is that it creates ATP, which can be used for energy.