That British soldiers would be quartered in private homes.
The British army was increasing its ranks in Boston but had nowhere to house them. To solve that the Quartering Act was put in place.
The Quartering Act, by the way, was passed in 1765, not 1774.