A swollen fallopian tube can be from an infection, including sexually transmitted disease, or from blockage of the end of the tube causing fluid to accumulate in the tube (hydrosalpinx).
This can be due to scarring
for infection or possibly endometriosis
or prior surgery. It depends on what the doctor means by "swollen tube".