Well I am sympathetic to someone out in the cold but if you read past the headline….
He burgled the house for the keys previously.
Entered the house, unlawfully, and stayed in it for 4 days.
Didn’t leave when asked by the owner.
So the six months might be reasonable.
He might not have had a jail sentence if he hadn’t waived his right to a pre sentence report, which would have brought into play mitigating factors such as the fact he had nowhere to go, other personal circumstances.
So yes it might seem harsh at first glance but he didn’t help himself in the slightest, did he?