In crate training the dog is in a crate during any unsupervised (not directly looking at dog) hours, and let out frequently and taken to the bathroom.
Yes, the dog doesn't go while in the crate, but this isn't the point of the training, the point of the training is to take the dog to the bathroom after letting the need build up. Once the dog has established a habit of using the bathroom the dog is less likely to do it elsewhere.
So if you want to stop it do this:
1) Any time you are not watching the dog as your primary activity, put the dog in the crate.
2) Let the dog out of the crate every few hours, if the dog urinates where it shouldn't scold the dog (only if you see it happen, if you catch it even a minute later it's too late), if the dog urinates where they should (and you can help by taking the dog there) praise the dog.
3) Repeat first two steps till dog is trained.
Of course there can be a lot of other reasons that are helping cause your dog to do this. Your dog could be scared of leaving the room, or dislike the dark. Your dog may need walks, so it can mark territory that you don't mind it marking. It can be a lot of different things. But if you are going to crate train the dog the above is the basics on how to do it, and the idea is for it not to last much than days (i.e. keeping your dog in a crate during the day is not crate training, it's just keeping your dog in a crate during the day).