Went from co-sleeping to crib

Day 3 of sleeping in his crib and he doesn’t whine when I put him in there. He also sleeps the whole night. But didn’t when co-sleeping! Why is that??