There is no requirement for an employer to give feedback to an unsuccessful job applicant, other than where certain recorded information must be given where the individual makes a subject access request under the General Data Protection Regulation.
However, many employers do provide feedback, as a matter of good practice.
If the unsuccessful applicant is an internal candidate, providing constructive feedback may help to maintain a good working relationship, and assist with their future career progression.