Why is my boyfriend only affectionate when we're alone?

So when he is at my house we will hug and cuddle and hold hands.
But in public, he won't do those things unless I ask him if he wants to.
Why is my boyfriend only affectionate when we're alone?
Post Opinion