Yes, because he did it while swimming. Parent is talking about sitting on your bed.
Obviously, when you combine such exercise with activities that require full attention, like swimming, frying a steak or driving a car you add a dimension of serious danger.