Capillaries are small vessels that branch off of blood vessels and provide the cells with glucose. Glucose is necessary for cells to carry out their function.
Cells need to be near capillaries because the capillaries take blood, which brings in food in return. And it also takes way isolated products from the body.