Why does GDAL open a DTED file as a vector format?

Why does GDAL open a DTED file as a vector format?

GDAL version: 2.1.1

Language: C++

Given the path of a geospatial file, I want to know whether the file is a raster or vector format. The only way I have found so far to make that distinction is to ...