Believe it or not, I have seen this question quite frequently! WHY do people put their TH outside their walls? (Please check out a different post if you already know the answer to this!)
Well, there are a few reasons for it. The first reason is to get a shield. When your town hall is destroyed, you get a shield. This shield is very important for farmers because it ensures that they will only get attacked once a night. One of the most frustrating things for a new farmer is to be attacked 4 – 5 times per night and lose 100k + each time. Once you have been farming for a bit, you realize that you can never successfully make sure ALL of your gold and elixir is safe, but you can decide how many times you will be raided per night. There are many players that “next” until they find an opponent with their TH outside. If yours is outside, you might get lucky and have someone that just wants to get trophies. In this case, they will destroy your town hall and get out without taking any money. This player is likely of a lower level than you and are afraid of the revenge retaliation if they go for more. So, you will likely get a free shield! Second reason is that when you keep your town hall outside your walls, it will help you stay at a good farming level. You will likely lose a few trophies while you are not on, get a shield, and protect your resources.
Questions? Ask away!!