we go to church because that is where we take the sacrament. when Jesus fed The 5000, he told them later that it represented the sacrament. actually he said except the man eats my flesh and drink my blood he can not enter the kingdom of heaven. They stopped following him then. they were there to get the free food, plus no doubt they did not understand his statement about eating his flesh and drinking his blood.
while you take the sacrament you promise God to keep his Commandments. In return God promises his spirit to be with you to remind you to make the right choices.
this is why attending church is critical to our internal progression to become more like our father in heaven.