It is a distance. Quality appliance manufacturers do not limit how far away from a sink you can install your dishwasher. A drainage hose that is about 6 feet long will be included in the unit. You can usually get long pipes at home centers.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.