Mostly it is to do with destinations, airlines can't fly to every destination and from any destination. So they create hubs where passengers can gather and fill up a plane. For example, a flight from Paris to Leeds Bradford is unlikely to be very full and therefore it is not profitable.