The products of photosynthesis is to gain energy and build compounds, like glucose from carbon dioxide, making it anabolic
The reactants of cellular respiration are catabolic, and that refers to the breaking down of compounds, which releases energy.
The relationship is that they're complex compounds that consist of materials coming from essential processes in the cell.