There are companies which own mining hardware located in their own facility and provide its hash rate to users for a certain fee. As an user of this service, you don't need to own the mining hardware (for example the ASICs), but you pay for a specific amount of hash rate for a specific time period. It's called a mining contract.
We strongly recommend that you properly calculate the financial efficiency before buying any cloud mining contracts. The cloud mining companies usually charge an additional maintenance fee and, in a lot of cases, the returns may be lower than the costs.