out of courtesy

out of courtesy (to someone)

in order to be polite to someone; out of consideration for someone. We invited Mary's brother out of courtesy to her. They invited me out of courtesy.
See also: courtesy, of, out