Assuming, for simplicity, that the plane is landing directly into the wind:
Aircraft speeds like landing speeds, stall speeds, etc. are given in KIAS (Knots Indicated Air Speed), because so much about the airplane's operation is derived directly from how the wings are interacting with the air.
Ground speed is just the plane's movement in reference to the ground, and has no direct influence on the aircraft (the aircraft's situation determines the ground speed, the ground speed doesn't determine anything by itself).
So if the aircraft has a landing speed of 70 KIAS, that means air is going over the wings at 70 knots - that's how much air the engine is propelling the plane through. If 25 of those knots are consumed just keeping pace with the headwind, then that leaves 45 knots of forward motion relative to the ground, aka the ground speed.
This is because both the wind speed and the ground speed are measured relative to the ground. It's just the aviator's version of the "Train A leaves station 1 at 100kph, Train B leaves station 2 on the same track in the opposite direction at 75kph, assuming both operators are asleep, at what speed do the trains collide?"