People wanting a son to carry on their family name

I admittedly have never seen this in real life but on Reddit, I occasionally see someone wanting a son so they can carry on their family name.

This is the dumbest reason to want to have a son.

Most people do not have unique last names so your family name will be carried on by other distant relatives.

Second, last names are completely irrelevant. I would say it's some medieval or Victorian age thinking but it didn't even make sense then.

If someone is so insistent on having someone carry on their last name, you can just find someone on the planet that you can pay money to to change her last name to yours, but again, it's just a completely arbitrary and stupid desire.