We've had our beagle from the shelter for about 10 years now. He's about 12 we think.
He's crate trained and has slept in his crate (at night) since we brought him home. Only times he doesn't like being in there at night is if there's a big storm or he's not feeling well. He'll scratch and whine and we let him out.
He's free to roam the apartment during the day or while we are not home.
Recently though he's not wanting to stay in there all night. He scratches and whines to get out almost immediately. Even with no scary storms.
We caved the 1st time or 2nd and he ended up sleeping in our bed. Not ideal at all and prefer he sleep in his crate.
We spent an exorbitant amount at the vet