Edward was the heir but there were four spares ... Albert (later George VI), Henry (Duke of Gloucester), George (Duke of Kent), and John. Admitedly John was an invalid and died young, while George later turned out to be a bit of a druggy ... but that still left two competent adult brothers. Fortunately so as things turned out.