Why is the red panda called a panda even though its not a panda?

idk, why is the panda bear called a panda bear it it's not a bear?

The person who first saw 'red panda' thought it looked liked a panda and therefore called it a panda!