Downlights rarely come as a single unit, so I expect you have multiple downlights, so one of the cables will be power into the transformer, and the other cable will be power onto the next light.
Most GU10 fittings are designed to take two cables, so you should be able to connect both directly, but try to make a better job than whoever fitted the original. ALL single insulated wires (the red and the black) must be completely inside the terminal box, and the cable clamps must be on the grey sheath.
Alternatively, if the new fitting's terminal box is on the small side, as many are, you can use one of the small MF lighting junction boxes that are now available to join the two cables, and add a short flexible cable to the fitting.