Online checkin is provided by airlines to avoid waiting in the queue at the airport. It usually starts 24-72 hours before the take off.