If you want to go deeper in this topic , click on these links, they could help you to understand.
https://www.ef.com/ca/english-resources/english-grammar/demonstratives/
https://learnenglish.britishcouncil.org/english-grammar-reference/demonstratives