How to add weights parameter to Generalized Mixed Model

If I de-tabulate the tabulated Titanic dataset so that each row represents an individual person the results change:

I don’t know why. I understood the weights parameter to be intended for just this purpose.
See:

and:

It produces the exact same [except residuals] results on a GLM but not GLMER.