Your cat is looking for a Spot to Hunt
For an indoor cat, a perch or cat tree near a window is the perfect place to keep an eye on potential prey outside the house.
Cats have an instinctive need to watch their prey from high points as it gives them a better view and offers protection from larger animals like coyotes, owls, or eagles.
For an outdoor cat, an elevated position, like a tree branch or a shed roof, gives her a safe place to hunt her prey.