If the skirting was damp when installed, it will shrink & leave a gap. The gap can just be filled in, this will also stop draughts. I have used canned foam and silicon in the past.
However. It can also point to the ends of the joists being rotten and sunk slightly. Often happens with solid walls or no/defective damp courses. Commonest (but not exclusively) on the ground floor. Also if the joists are embedded in outside walls.
This is a serious defect if it is so. What it needs is the joist ends probing with a screwdriver to see if they are rotten, taking a floor board up if neccessary.
If you think the walls are damp, you should do this.