In modern time, coastal areas prosper when they have a desirable climate (moderate temperatures buffered by water) or concentrate commerce (e.g. shipping port, especially deep water).
A bunch of the coastal towns in the UK offer neither. They have a legacy of things like small fishing operations, which was significantly more valuable in the past when food was more scarce and fisheries were healthier.