In a way, it is: they both have a pastry crust and a filling. Galette tend to be very flat as they do not have the support of a pan edges when then bake, with exposed filling in the middle. Pies are usually much thicker and can have pastry covering the filling.