At that time, it wasn't uncommon at all for a widow in a family to remarry one of her husband's cousins or even brother. Divorce was nearly unheard of during that period, so it's much more likely that her first husband died prematurely. It looks like Pvt. Moses Endicott died in 1834 and Joseph Endicott, IV not until 1883, so that would make sense.