animal testing ?

i never understood what it meant , like yeah they test on animals but what is tested and how does it hurt them ? i don't get why people can't test things without harming something ?