My DS is 7 and he likes to sleep in our bed. If we let him we he'd come in there every night but we just let him a couple nights a week or at the weekend.
Tbh we don't really mind if he did do it every night we just think it's good for him to have the habit of his own room/bed.
We also have a younger one who likes to sneak in to our bed at some point so it can get a bit of a squeeze!
When did your child naturally grow out of this?