No, it’s not necessary to provide a detailed reason for your resignation in your letter. If you wish to, you can keep it brief by mentioning personal reasons or a new opportunity, but this is entirely optional.