Knee cap slipping?

So I was putting on my shorts and my knee cap slipped out of place, it didn't hurt but it kinda stayed out of place for a second until I bent over to put it back in place and it popped back in. It has happened a few times before, I'm pretty active and my leg muscles are strong so idk if it's because most of my joints are loose or what but does anyone know what this is?