How come when i die in minecraft i don't go to my home? Fast replies please?

I play minecraft pe and a creeper from behind blew up amd i ended up dead. When i respawn i ended up across the map. How do i fix this? Why does this happen? Yes i have a house and bed and i sleep on it. This never occurred before.

When you build a house, to respawn there you have to sleep in the bed inside of your house. Hope this helps. Cheers.