I think its purpose is to allow people to rest and escape the midday heat during the hottest hours of the day. It also allows families to spend time together and enjoy a leisurely lunch. While it may disrupt school and work schedules, it is a valued part of Spanish culture and lifestyle. It may affect sports and other activities that typically take place during the afternoon, but it also provides an opportunity for people to recharge and return to their activities later in the day.