In Western society, not only literary works, but all artistic works are like this, which is somewhat conventional. Some simply express the meaning of "dedication". For example, Bach's Goldberg Variations are dedicated to Count Catherine, so it will naturally be marked on the work; and many paintings, both ancient and modern, Chinese and Western, have the habit of dedicating them. Some are for commemoration or remembrance. For some co-authored works, if the co-author passes away midway, a special dedication will be dedicated when publishing to express remembrance. Some are also dedications related to the content of the works, which are more common in novels. For example, on the title page of each book, Rowling will write her relatives into Harry's world. The last one is dedicated to everyone who is loyal to Harry. Harry's readers appear cordial and touching.
As for most mass-produced and publicly released literary works, in addition to the above reasons, they are more about expressing gratitude: dedicating them to a partner is an expression of companionship, care and encouragement for the other person. Gratitude is also a way of giving honor to the other person; dedicating it to the younger generation is a way of hoping that the work will be passed down.
Writing is really a protracted battle. When you finish writing the last word, you will find that there are so many people you want to thank, those who inspire you, those who encourage you, and those who give you If you love people, you will want to dedicate your hard work to them.
This is a feeling that exists in every writer in all kinds of societies. The reason why the author feels that it is more common in literary works in Western societies is because in Western societies, there is a need to express and please. Traditional, they are more willing to express, better at pleasing, and more willing to share with others. Putting your name on the title page and publishing it all over the world, no matter what the emotion is, is a happy thing for everyone.