Whyyy wear shoes in the house? Like why?

As Ukrainian and never understood why a lot of people wear shoes in the house or in the room or on the bed?? Can someone who does answer the question? I heard that a lot of cultures do not where shoes in the house. I’ve always been curious about it.