cudaGetMatrix problems

I have a stupid question. if I generate a 2D array on the device , Why cannot I use cudaGetmatrix to copy it back to main memory?
cudaSetmatix and cudaGetmatrix are often used for calculating routines such as

cudaSetmatrix

dgemm

cudaGetmatrix

while my problem didn’t use such kind of routines.