If each sample had its own weight, then ur model won’t be able to generalize properly on data that wasn’t part of the training data.
It’s like having a data points in a graph that make up a straight line. You would want to get the slope (m) of the straight line after making the plot of the entire data points, rather than finding m for each and every single point.