How is pet AI still this terrible?

imagine being this much of a spoiled little babyboi that you dont understand at all how difficult coding pet AI is and how it has never been perfected ever in the history of earth.