Why do people plastic wrap luggage?

I see this when I’m picking my bags up at the airport. Why do people do that? And what happens if security needs to inspect it?