Why can't spiders climb up glass?

My mum always catches them in a glass and they can’t get out, till she puts them outside. Why is this and can you tell me your source. Thanks y’all.