Why do some plants have leaves or shoots turned into thorns?

In some plants, the leaves or shoots have turned into thorns for less moisture evaporation from the surface of the plants, and the thorns also protect the plants from animals.

One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.