@Carlos ********
Because the airline will normally require to see a means of departure within the number of days that you will get stamped in for i.e. 30 days before they issue your boarding pass. It's one of the "3 proofs" which Immigration may ask for
- Proof of accommodation (e.g. hotel bookings for at least a few days)
- proof of onward travel (an international travel ticket leaving Thailand within your permitted-to-stay period, i.e. 30 days for visa exempt or 60 days for a Tourist Visa)
- proof of funds (20,000B or equivalent in any major currency in CASH per individual, or 40,000B for a family)