It can be related to two scenarios:
Pre-authorization: sometimes gas stations and hotels may hold an amount on your account prior to authorizing the final charge.
Regular processing: Usually, the transaction settlement of a transaction takes a few days after initiation.
While on pending status, the amount is no longer available for you to use, and this is a way for the establishment to retain your payment until they are ready to charge you.