The why the text was written is 2) the reason the author has to develop it.
The correct answer is A.
The reason why the text is written and the author's intenson when writting it are called "author's purpose".
Every essay and speech is driven by the concrete purpose its writter or speaker has for it. Whether it seeks to convince or to inform, the purpose has to be clear for it to be successfully done.
A text is always written with an intention which may be either personal, social, political, etc. either to amuse the readers or to inform them or to satirize an issue. Thus, while reading a text the readers must have a fair idea about the context, the author's purpose and the message inherent as these are the most significant things to consider for better clarity of the themes and understanding of the text. Knowing the author's purpose would also assist in inter-textual, critical or comparative studies. It enlaces the reader with the lenses of the author's perception to look at the text and motivate and inspire themselves. Yet one should not get over-obsessed with the author's purpose as it may confine or restrict their thinking ability.
my sister gave her a record.
my sister gave a record to her.