Studying local history helped me understand why the town grew around the river.