Correction: Edmonton is the capital city of Alberta.
The question contains a false premise. Calgary is Alberta's largest city, but Edmonton has been the provincial capital since 1905.
Edmonton was chosen for its central location, river access, and existing government infrastructure (North-West Territories legislature).