Why would a Welsh town that receives a huge investment from the European Union vote to leave it?