Your mistake is to take the UK as a single economic entity. The "UK" is a collection of disparate interests, and being in the EU only specifically favours billionaires, the well to do and the high connected.