The answer is: to ward off evil
Assyrian protective god Lamassu used to be portrayed as a creature with a human head, a lion or bull body, and bird wings. Sculptures of Lamassu were popular in the Near East and were frequently located at the entrance of palaces. The reason is they were believed to provide guardianship to the place.