However , Peter is spotted by Mr. McGregor and loses his jacket and shoes while trying to escape .
When Peter loses his jacket and his shoes , Mr. McGregor uses them to dress a scarecrow .