Why a dam is thicker at the bottom than at the top

Because pressure is larger at the bottom than at the top.