The coronavirus pandemic has swept across a world unprepared to fight it, because countries had failed to choose policies to fight inequality.