They can. It isn't just the French. There are about 15 different countries refusing to allow ferries and flights from the UK.
The 48 hours is to get a Covid check and if negative, then people can travel.
Edit to add it isn't just European countries...