That's because Sunita Williams was up in space much longer than Katy Perry. Sunita Williams also graduated from the United States Naval Academy and became a naval aviator, learning to fly the CH-46 Sea Knight helicopter. She donated her hair to an organization called Locks of Love. On April 16, 2007, she ran the first marathon in space. Her spaceflights have taken place inside four different vehicles, the Space Shuttle, the Russian Soyuz, the Boeing CST-100 Starliner, and the SpaceX Dragon.
Katy Perry is just a space tourist. Sunita Williams is a real astronaut.
https://en.wikipedia.org/wiki/Sunita_Williams