After a hair transplant, all doctors recommend using minoxidil. I know that it is beneficial for existing hair, but is it really necessary for new hair as well? Does it actually work on newly transplanted hair?

Yes, continuing minoxidil for a long period after FUE can be a reasonable approach. However, in most patients, its primary benefit is not on the transplanted hair but on the existing, non-transplanted hair, which may continue to be affected by androgenetic alopecia.
There are scientific studies showing that minoxidil may accelerate hair growth after surgery and reduce postoperative shedding in transplanted grafts. There is also evidence indicating a reduction in shock loss after hair transplantation.
However, the main purpose of using minoxidil after a hair transplant is to help prevent or slow hair loss in the non-transplanted hair. The transplanted grafts are generally intended to provide more permanent hair growth, while the existing non-transplanted hair can continue to be affected by androgenetic alopecia.